tests(packer): cleanup cloud init files.

This commit is contained in:
Alexandre Pujol 2024-03-15 14:55:46 +00:00
parent c3c61a9270
commit 3fc4c29968
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
12 changed files with 79 additions and 76 deletions

View file

@ -145,9 +145,9 @@ trim() {
truncate --size=0 /swap/swapfile
fi
_msg "Fill root filesystem with 0 to reduce box size"
dd if=/dev/zero of=/EMPTY bs=1M || true
rm -f /EMPTY
# _msg "Fill root filesystem with 0 to reduce box size"
# dd if=/dev/zero of=/EMPTY bs=1M || true
# 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 is bad.