From 99c790b22382d888853509b49526c64eb812b0ae Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 30 Jun 2013 10:43:04 -0400 Subject: rdlogger: log messages which would have been hidden by quiet This allows 'quiet rd.log=kmsg' to produce a silent boot while still logging the full output that would have been written to the console. Signed-off-by: Dave Reisner --- init_functions | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'init_functions') diff --git a/init_functions b/init_functions index 152da7f..f356a14 100644 --- a/init_functions +++ b/init_functions @@ -326,6 +326,11 @@ rdlogger_start() { exec >/run/initramfs/rdlogger.pipe 2>&1 [ -n "$rd_debug" ] && set -x + + # messages would be otherwise lost if we don't unset quiet. this does, + # however, mean that passing rd.log=console will negate the effects of + # 'quiet' for initramfs console output. + unset quiet } rdlogger_stop() { @@ -361,7 +366,7 @@ rdlogger() { # will Do The Right Thing™. # rd.log=console - if [ -z "$quiet" ] && bitfield_has_bit "$rd_logmask" "$_rdlog_cons"; then + if bitfield_has_bit "$rd_logmask" "$_rdlog_cons"; then exec 4>/dev/console else exec 4>/dev/null -- cgit v1.2.3-24-g4f1b