Skip to contentSkip to conversation

add 'swapoff' to initramfs to fix shutdown/reboot

PATCH New Will Woods 1 participant 1 message Oct 24, 2012

lore
Share & tools
lore

Will Woods

author
#0 lore raw

PATCH 1/1 add 'swapoff' to initramfs to fix shutdown/reboot

systemd shutdown/reboot won't work unless 'swapoff' is available.

---
 modules.d/98systemd/module-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
modules.d/98systemd/module-setup.sh +1 -1
index 577bcb9..e60694e 100755
@@ -83,7 +83,7 @@ install() {
         $systemdsystemunitdir/initrd-switch-root.target \
         $systemdsystemunitdir/initrd-switch-root.service \
         $systemdsystemunitdir/umount.target \
-        journalctl systemctl echo
+        journalctl systemctl echo swapoff
 
     if [[ $hostonly ]]; then
         dracut_install -o /etc/systemd/journald.conf \
Signature · 1 line
1.7.11.7