[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 1/2] Make panic message visible even if panic= is used



The purpose of panic= is to make the system reboot automatically on
panic but also give the interactive user some time to see what went
wrong.

Signed-off-by: Timo Juhani Lindfors <timo.lindfors@iki.fi>

diff --git a/scripts/functions b/scripts/functions
index 2280ba2..025001f 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -37,6 +37,7 @@ panic()
 		chvt 1
 	fi
 
+	echo "$@"
 	# Disallow console access
 	if [ -n "${panic}" ]; then
 		sleep ${panic}
@@ -44,7 +45,6 @@ panic()
 	fi
 	modprobe i8042
 	modprobe atkbd
-	echo "$@"
 	REASON="$@" PS1='(initramfs) ' /bin/sh -i </dev/console >/dev/console 2>&1
 }
 
-- 
1.7.2.3


Reply to: