gns3-registry/packer/debian/scripts/post_setup.sh
Bernhard Ehlers 48f179706a Debian packer template: Improvements
- run scripts as root, no sudo needed within scripts
- add shebang to scripts
- add "set -ex" to abort scripts on error and to display commands
2022-12-10 11:44:34 +01:00

11 lines
179 B
Bash

#!/bin/sh
set -ex
# clear repository
apt-get clean
# clear unused space
echo 'Clearing unused space...'
dd if=/dev/zero bs=1M of=/zero >/dev/null 2>&1 || true; rm -f /zero
sync