pid1: make sure we look at /proc/1/cmdline when parsing config
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 18 Jul 2019 15:13:09 +0000 (17:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jul 2019 07:06:22 +0000 (09:06 +0200)
commit5f4a88239523ca4f4298b262f7ca4fcbb8884f3c
tree3ef8a6db7aba9adca22cbb43abc8a536ce81a21d
parent03909b1e23833a4c08818a16f26e60e19517f06c
pid1: make sure we look at /proc/1/cmdline when parsing config

In recent systemd-nspawn we wouldn't parse init args like systemd.log-level=debug.
This is because we wouldn't even look at /proc/1/cmdline.

$ systemd-nspawn -n cat /proc/1/stat
1 (cat) R 0 1 1 34816 ....
                ^^^^^
34816 is 136:0 a.k.a. /dev/pts/0.
src/basic/log.c