Blame SOURCES/0149-shutdown-if-kexec-failed-do-a-simple-reboot.patch

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