tests(packer): rewrite the way to build the tests images.

This commit is contained in:
Alexandre Pujol 2025-03-01 16:10:09 +01:00
parent 6d5a522dcb
commit 0b029ec42f
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
9 changed files with 98 additions and 254 deletions

View file

@ -56,9 +56,6 @@ clean_apt() {
clean_pacman() {
_msg "Cleaning pacman cache"
pacman -Syu --noconfirm
pacman -Qdtq | while IFS='' read -r pkg; do
pacman -Rsccn --noconfirm "$pkg"
done
pacman -Scc --noconfirm
}
@ -136,10 +133,6 @@ 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
# 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.
sync