Permalink
Jul 7, 2016
Jul 7, 2016
Newer
100755
12 lines (9 sloc)
310 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

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