solar/bootstrap/alpine/scripts/99minimize.sh
Jedrzej Nowak 7325a9371d Minimal solar VM packer template
Alpine linux as a base, vbox and libvirt

Change-Id: Iaa37b1ae02b4b0d22fc01fbeff5c6ce96e0b2699
2016-05-05 15:30:41 +02:00

12 lines
213 B
Bash

set -ux
dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY
# Block until the empty file has been removed, otherwise, Packer
# will try to kill the box while the disk is still full and that's bad
sync
sync
sync
exit 0