mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 08:58:15 +01:00
test(packer): arch images - remove broken swap file.
This commit is contained in:
parent
14a4e143b0
commit
c707b730ef
3 changed files with 15 additions and 0 deletions
|
@ -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 ]
|
||||
|
|
|
@ -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 ]
|
||||
|
|
|
@ -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 ]
|
||||
|
|
Loading…
Reference in a new issue