test: improve vm image generation

This commit is contained in:
Alexandre Pujol 2023-07-18 22:22:08 +01:00
parent b4311dac65
commit 3393d8f649
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
9 changed files with 47 additions and 8 deletions

View file

@ -61,7 +61,9 @@ clean_arch() {
_msg "Pacman clean configuration"
pacman -Syu --noconfirm
pacman -Rsccn --noconfirm "$(pacman -Qdtq)"
pacman -Qdtq | while IFS='' read -r pkg; do
pacman -Rsccn --noconfirm "$pkg"
done
pacman -Scc --noconfirm
}