diff --git a/provision/write_zeroes.sh b/provision/write_zeroes.sh index fc81c3d..6151369 100644 --- a/provision/write_zeroes.sh +++ b/provision/write_zeroes.sh @@ -3,6 +3,8 @@ set -e set -x +# Make sure unwritten data has been flushed beforehand +sync # Write zeros to improve virtual disk compaction. zerofile=$(/usr/bin/mktemp /zerofile.XXXXX) dd if=/dev/zero of="$zerofile" bs=1M || true