From e03a7906495ae1a466b0e8817c0b4e22b50c6838 Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Wed, 27 Nov 2024 13:27:13 -0500 Subject: [PATCH] init: inform user that running in quiet mode, tell user that technical information can be seen running 'cat /tmp/debug.log' from Recovery Shell Signed-off-by: Thierry Laurion --- initrd/init | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/initrd/init b/initrd/init index 6959424e..83ea659c 100755 --- a/initrd/init +++ b/initrd/init @@ -59,6 +59,11 @@ hwclock -l -s . /etc/ash_functions . /etc/config +# report if we are in quiet mode, tell logs available under /tmp/debug.log +if [ "$CONFIG_QUIET_MODE" = "y" ]; then + echo "Quiet mode enabled. To see technical output, do 'cat /tmp/debug.log' from Recovery Shell!" > /dev/tty0 +fi + # Board config had CONFIG_DEBUG_OUTPUT=y defined. # Note that boards's coreboot config kernel command line "debug" option only will have all kernel messages output on console prior of this point if [ "$CONFIG_DEBUG_OUTPUT" = "y" ]; then