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.lindf...@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


-- 
To UNSUBSCRIBE, email to debian-kernel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1298887825-6838-2-git-send-email-timo.lindf...@iki.fi

Reply via email to