[PATCH 2/2] Inform the user about reboot on panic=
Currently if a system administrator uses "panic=60 break=top" boot
options initramfs prints
Spawning shell within the initramfs
but does not actually spawn the shell since panic= disallows
that. This patch explicitely informs the user about the reboot and
hints that by reminving panic= he/she can get break= debugging to
work.
Signed-off-by: Timo Juhani Lindfors <timo.lindfors@iki.fi>
diff --git a/scripts/functions b/scripts/functions
index 025001f..579696a 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -40,6 +40,7 @@ panic()
echo "$@"
# Disallow console access
if [ -n "${panic}" ]; then
+ echo "Rebooting automatically due to panic= option"
sleep ${panic}
reboot
fi
--
1.7.2.3
Reply to: