diff --git a/tests/packer/init/archlinux-gnome.user-data.yml b/tests/packer/init/archlinux-gnome.user-data.yml index a7c1afa9..59cb0976 100644 --- a/tests/packer/init/archlinux-gnome.user-data.yml +++ b/tests/packer/init/archlinux-gnome.user-data.yml @@ -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 ] diff --git a/tests/packer/init/archlinux-kde.user-data.yml b/tests/packer/init/archlinux-kde.user-data.yml index b482a81e..5f6f17e0 100644 --- a/tests/packer/init/archlinux-kde.user-data.yml +++ b/tests/packer/init/archlinux-kde.user-data.yml @@ -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 ] diff --git a/tests/packer/init/archlinux-server.user-data.yml b/tests/packer/init/archlinux-server.user-data.yml index 062f3132..2d23c67b 100644 --- a/tests/packer/init/archlinux-server.user-data.yml +++ b/tests/packer/init/archlinux-server.user-data.yml @@ -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 ]