test(packer): arch images - remove broken swap file.

This commit is contained in:
Alexandre Pujol 2024-03-08 13:08:45 +00:00
parent 14a4e143b0
commit c707b730ef
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC
3 changed files with 15 additions and 0 deletions

View File

@ -59,6 +59,11 @@ runcmd:
# Regenerate grub.cfg
- [ grub-mkconfig, -o, /boot/grub/grub.cfg ]
# Remove swapfile
- [ swapoff, -a ]
- [ rm, -rf, /swap/ ]
- [ sed, -e, "/swap/d", -i, /etc/fstab ]
# Enable core services
- [ systemctl, enable, apparmor ]
- [ systemctl, enable, auditd ]

View File

@ -60,6 +60,11 @@ runcmd:
# Regenerate grub.cfg
- [ grub-mkconfig, -o, /boot/grub/grub.cfg ]
# Remove swapfile
- [ swapoff, -a ]
- [ rm, -rf, /swap/ ]
- [ sed, -e, "/swap/d", -i, /etc/fstab ]
# Enable core services
- [ systemctl, enable, apparmor ]
- [ systemctl, enable, auditd ]

View File

@ -41,6 +41,11 @@ runcmd:
# Regenerate grub.cfg
- [ grub-mkconfig, -o, /boot/grub/grub.cfg ]
# Remove swapfile
- [ swapoff, -a ]
- [ rm, -rf, /swap/ ]
- [ sed, -e, "/swap/d", -i, /etc/fstab ]
# Enable core services
- [ systemctl, enable, apparmor ]
- [ systemctl, enable, auditd ]