Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/
Date: Tue, 06 Jul 2021 00:25:20
Message-Id: 1625525085.f80b81da305f1f782043d31751f81264be6f2ecd.whissi@gentoo
1 commit: f80b81da305f1f782043d31751f81264be6f2ecd
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 23 22:42:13 2021 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 5 22:44:45 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=f80b81da
7
8 linuxrc: Don't mess with console log level in quiet mode
9
10 Fixes: d5f7d79b ("linuxrc: Refactor handling of console log level")
11 Bug: https://bugs.gentoo.org/788970
12 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
13
14 defaults/linuxrc | 9 ++++++---
15 1 file changed, 6 insertions(+), 3 deletions(-)
16
17 diff --git a/defaults/linuxrc b/defaults/linuxrc
18 index 932df46..6ede740 100644
19 --- a/defaults/linuxrc
20 +++ b/defaults/linuxrc
21 @@ -452,8 +452,11 @@ do
22 esac
23 done
24
25 -# Prevent superfluous printks from being printed to the console
26 -echo ${GK_CONSOLE_LOGLEVEL} > /proc/sys/kernel/printk
27 +if ! is_quiet
28 +then
29 + # Prevent superfluous printks from being printed to the console
30 + echo ${GK_CONSOLE_LOGLEVEL} > /proc/sys/kernel/printk
31 +fi
32
33 good_msg "${GK_META_VERSION} (${GK_META_BUILD_DATE}). Linux kernel ${KV}"
34
35 @@ -1370,7 +1373,7 @@ do
36 fi
37 done
38
39 -if [[ "${CONSOLE_LOGLEVEL}" != "${GK_CONSOLE_LOGLEVEL}" ]]
40 +if ! is_quiet && [[ "${CONSOLE_LOGLEVEL}" != "${GK_CONSOLE_LOGLEVEL}" ]]
41 then
42 good_msg "Restoring console log level (${CONSOLE_LOGLEVEL}) ..."
43 echo ${CONSOLE_LOGLEVEL} > /proc/sys/kernel/printk \