Permalink
Jul 7, 2016
Jul 7, 2016
Newer
100755
11 lines (8 sloc)
281 Bytes

1
#!/bin/bash -eux
2
3
# Zero out the rest of the free space using dd, then delete the written file.
4
dd if=/dev/zero of=/EMPTY bs=1M
5
rm -f /EMPTY
6

10
# Add `sync` so Packer doesn't quit too early, before the large file is deleted.
11
sync