From c707b730ef2ffb08830834bd3464eb95f511a97d Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Fri, 8 Mar 2024 13:08:45 +0000 Subject: [PATCH] test(packer): arch images - remove broken swap file. --- tests/packer/init/archlinux-gnome.user-data.yml | 5 +++++ tests/packer/init/archlinux-kde.user-data.yml | 5 +++++ tests/packer/init/archlinux-server.user-data.yml | 5 +++++ 3 files changed, 15 insertions(+) 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 ]