summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-11 19:40:16 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-04-14 19:59:10 +0200
commit8630fb6041b45c2b17823a822d8773acf20d38be (patch)
tree1a17b3db9c68885e1ef2b75b2331c03d0dc0c364
parentmkosi: Use new volatile package settings (diff)
downloadsystemd-8630fb6041b45c2b17823a822d8773acf20d38be.tar.xz
systemd-8630fb6041b45c2b17823a822d8773acf20d38be.zip
mkosi: Don't log debug logs to console
We have various tools that log directly to the console, as well as pid1 which logs directly to the console when running in a container. Let's make sure that we don't log debug messages to the console by default, but keep the behavior when running in CI.
-rw-r--r--.github/workflows/mkosi.yml1
-rw-r--r--mkosi.conf2
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml
index 67d9e45dd3..249bf218f9 100644
--- a/.github/workflows/mkosi.yml
+++ b/.github/workflows/mkosi.yml
@@ -112,6 +112,7 @@ jobs:
tee mkosi.conf.d/99-ci.conf <<EOF
[Host]
KernelCommandLineExtra=systemd.unit=mkosi-check-and-shutdown.service
+ systemd.log_level=debug
systemd.journald.max_level_console=debug
# udev's debug log output is very verbose, so up it to info in CI.
udev.log_level=info
diff --git a/mkosi.conf b/mkosi.conf
index dde0562d80..96843db488 100644
--- a/mkosi.conf
+++ b/mkosi.conf
@@ -22,7 +22,7 @@ BuildSourcesEphemeral=yes
@RuntimeSize=8G
ToolsTreePackages=virtiofsd
KernelCommandLineExtra=systemd.crash_shell
- systemd.log_level=debug
+ systemd.log_level=debug,console:info
systemd.log_ratelimit_kmsg=0
systemd.journald.forward_to_console
systemd.journald.max_level_console=warning