mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
test(packer): arch images - remove broken swap file.
This commit is contained in:
parent
14a4e143b0
commit
c707b730ef
@ -59,6 +59,11 @@ runcmd:
|
|||||||
# Regenerate grub.cfg
|
# Regenerate grub.cfg
|
||||||
- [ grub-mkconfig, -o, /boot/grub/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
|
# Enable core services
|
||||||
- [ systemctl, enable, apparmor ]
|
- [ systemctl, enable, apparmor ]
|
||||||
- [ systemctl, enable, auditd ]
|
- [ systemctl, enable, auditd ]
|
||||||
|
@ -60,6 +60,11 @@ runcmd:
|
|||||||
# Regenerate grub.cfg
|
# Regenerate grub.cfg
|
||||||
- [ grub-mkconfig, -o, /boot/grub/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
|
# Enable core services
|
||||||
- [ systemctl, enable, apparmor ]
|
- [ systemctl, enable, apparmor ]
|
||||||
- [ systemctl, enable, auditd ]
|
- [ systemctl, enable, auditd ]
|
||||||
|
@ -41,6 +41,11 @@ runcmd:
|
|||||||
# Regenerate grub.cfg
|
# Regenerate grub.cfg
|
||||||
- [ grub-mkconfig, -o, /boot/grub/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
|
# Enable core services
|
||||||
- [ systemctl, enable, apparmor ]
|
- [ systemctl, enable, apparmor ]
|
||||||
- [ systemctl, enable, auditd ]
|
- [ systemctl, enable, auditd ]
|
||||||
|
Loading…
Reference in New Issue
Block a user