[systemd-devel] Inconsistent processing of 'debug' and 'systemd.log_level' options from kernel command line

Mike Gilbert floppym at gentoo.org
Tue Jul 1 20:47:55 PDT 2014


I have noticed that when the 'debug' option is passed on the kernel
command line, it is impossible to override this using the
'systemd.log_level' option.

I also note that passing SYSTEMD_LOG_LEVEL on the kernel command line
DOES work; the kernel copies this to the environment block for init.

Looking through the code, it looks like the 'debug' option is
processed twice by systemd[1] in src/core/main.c:

1. In parse_proc_cmdline(), 'debug' processed along with all other
kernel command line options including 'systemd.log_level'.

2. In log_parse_environment(), 'debug' is processed, but
systemd.log_level is ignored.

Is this a bug? It seems quite strange.


More information about the systemd-devel mailing list