]> git.ipfire.org Git - thirdparty/systemd.git/commit
pid1: don't reset setting from /proc/cmdline upon restart
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 24 May 2019 06:59:23 +0000 (08:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 29 May 2019 08:29:28 +0000 (10:29 +0200)
commit470a5e6dcec4637439ae953002127af214d396ac
treeae88312eebeea05c04e04d48725abc5ef11cfbde
parent61fbbac1d517a0b3498a689c736c6ca918497904
pid1: don't reset setting from /proc/cmdline upon restart

We have settings which may be set on the kernel command line, and also
in /proc/cmdline (for pid1). The settings in /proc/cmdline have higher priority
of course. When a reload was done, we'd reload just the configuration file,
losing the overrides.

So read /proc/cmdline again during reload.

Also, when initially reading the configuration file when program starts,
don't treat any errors as fatal. The configuration done in there doesn't
seem important enough to refuse boot.
src/core/main.c