public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pve-devel] [PATCH installer] unconfigured.sh: set kernel.printk to level warn
@ 2024-11-26 18:42 Stoiko Ivanov
  0 siblings, 0 replies; only message in thread
From: Stoiko Ivanov @ 2024-11-26 18:42 UTC (permalink / raw)
  To: pve-devel

we got a few reports of kernel-output drawing over the TUI-installer.
(e.g. when ZFS loads for the pool-cleanup, also mkfs.xfs sometimes
triggers a message being printed).

As the information gets logged in the kernel ringbuffer (`dmesg`)
anyways, there's little gain on having it displayed on the console in
addition.

following https://www.kernel.org/doc/Documentation/sysctl/kernel.txt
and
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/managing_monitoring_and_updating_the_kernel/getting-started-with-kernel-logging_managing-monitoring-and-updating-the-kernel
simply set the sysctl to log only messages of level warn and above to
the console.

Tested in a VM, where I manually ran the command before starting the
TUI installer (and selecting XFS as filesystem there). without it the
messages got displayed, with the command they did not.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
---
as it's a cosmetic issue I would not pull it in late in the release cycle.
Sending it nonetheless now, in order not to forget it.

 unconfigured.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/unconfigured.sh b/unconfigured.sh
index 070cf33..ef9aa3c 100755
--- a/unconfigured.sh
+++ b/unconfigured.sh
@@ -233,6 +233,9 @@ chronyd || echo "starting chrony failed ($?)"
 echo "Starting a root shell on tty3."
 setsid /sbin/agetty -a root --noclear tty3 &
 
+echo "Setting console loglevel to warn."
+sysctl -w kernel.printk='4 4 1 7'
+
 /usr/bin/proxmox-low-level-installer dump-env
 
 if [ $proxtui -ne 0 ]; then
-- 
2.39.5



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-26 18:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-26 18:42 [pve-devel] [PATCH installer] unconfigured.sh: set kernel.printk to level warn Stoiko Ivanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal