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 <insurgo@riseup.net>
This commit is contained in:
Thierry Laurion 2024-11-27 13:27:13 -05:00
parent 9cd4757e4a
commit e03a790649
No known key found for this signature in database
GPG Key ID: 9A53E1BB3FF00461

View File

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