]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
shutdown: if kexec failed, do a simple reboot
authorHarald Hoyer <harald@redhat.com>
Tue, 18 Mar 2014 12:21:22 +0000 (13:21 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Jul 2014 09:52:07 +0000 (11:52 +0200)
modules.d/99shutdown/shutdown.sh

index 162abcb974bdb77db13b8215ab3ca0439db9984e..1daf2ca3bf915e243f671cb6e5aa4818febb571e 100755 (executable)
@@ -113,6 +113,7 @@ case "$ACTION" in
     kexec)
         kexec -e
         warn "$ACTION failed!"
+        reboot -f -d -n
         ;;
     *)
         warn "Shutdown called with argument '$ACTION'. Rebooting!"