From 323005e4b8468ab9f7151d883d3df7b75f130911 Mon Sep 17 00:00:00 2001 From: Ferenc Wagner Date: Tue, 9 Feb 2010 17:16:04 +0100 Subject: initramfs-tools: make the panic argument available in the rescue shell Sometimes one misses the error message printed by the panic helper function, for example when attaching a serial console after the fact, or if kernel messages resulting from udev activity obscure or scroll it away. Please consider adding some facility like the attached patch. Thanks, Feri. (closes: #569033) Signed-off-by: maximilian attems --- scripts/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/functions b/scripts/functions index 77de8f3..c34dd4a 100644 --- a/scripts/functions +++ b/scripts/functions @@ -50,7 +50,7 @@ panic() modprobe i8042 modprobe atkbd echo $@ - PS1='(initramfs) ' /bin/sh -i /dev/console 2>&1 + REASON="$@" PS1='(initramfs) ' /bin/sh -i /dev/console 2>&1 } maybe_break() -- cgit v1.2.3