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

@ -26,6 +26,7 @@ main() {
case "$DISTRIBUTION" in
arch)
rm -f $SRC/*.sig # Ignore signature files
pacman --noconfirm -U $SRC/*.pkg.tar.zst
;;
@ -40,9 +41,12 @@ main() {
esac
rm -rf /var/cache/apparmor/*
rm -rf /etc/apparmor/earlypolicy/
systemctl reload apparmor.service
verb="start"
rm -rf /var/cache/apparmor/* || true
if systemctl is-active -q apparmor; then
verb="reload"
fi
systemctl "$verb" apparmor.service || journalctl -xeu apparmor.service
}
main "$@"