add 'swapoff' to initramfs to fix shutdown/reboot
authorWill Woods <wwoods@redhat.com>
Wed, 24 Oct 2012 17:06:28 +0000 (13:06 -0400)
committerHarald Hoyer <harald@redhat.com>
Fri, 14 Dec 2012 08:04:55 +0000 (09:04 +0100)
systemd shutdown/reboot won't work unless 'swapoff' is available.

modules.d/98systemd/module-setup.sh

index 666485e..9abe292 100755 (executable)
@@ -85,7 +85,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 \