a56a5e
From 9d75fd3b62be29813c9c30a88e3f1bacc921847a Mon Sep 17 00:00:00 2001
966cef
From: Harald Hoyer <harald@redhat.com>
966cef
Date: Tue, 18 Mar 2014 13:21:22 +0100
966cef
Subject: [PATCH] shutdown: if kexec failed, do a simple reboot
966cef
966cef
---
966cef
 modules.d/99shutdown/shutdown.sh | 1 +
966cef
 1 file changed, 1 insertion(+)
966cef
966cef
diff --git a/modules.d/99shutdown/shutdown.sh b/modules.d/99shutdown/shutdown.sh
1755ca
index 162abcb9..1daf2ca3 100755
966cef
--- a/modules.d/99shutdown/shutdown.sh
966cef
+++ b/modules.d/99shutdown/shutdown.sh
966cef
@@ -113,6 +113,7 @@ case "$ACTION" in
966cef
     kexec)
966cef
         kexec -e
966cef
         warn "$ACTION failed!"
966cef
+        reboot -f -d -n
966cef
         ;;
966cef
     *)
966cef
         warn "Shutdown called with argument '$ACTION'. Rebooting!"