4af9c6eaedb438ebc5c149f4929240bb059a48a6
[integration/packaging.git] / packer / provision / minimize.sh
1 #!bin/sh -eux
2
3 dd if=/dev/zero of=/EMPTY bs=1M
4 rm -f /EMPTY
5 # Block until the empty file has been removed, otherwise, Packer
6 # will try to kill the box while the disk is still full and that's bad
7 sync