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

966cef
From 1dedc040181895fc95819fc6546d6862f3aba0a5 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
966cef
index 162abcb..1daf2ca 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!"