]> git.ipfire.org Git - thirdparty/systemd.git/commit
sulogin-shell: do daemon-reload before starting default target
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Dec 2017 09:33:11 +0000 (10:33 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Dec 2017 11:34:31 +0000 (12:34 +0100)
commit375c3f6aae10a830d416f66dc766f3d6793670fc
treee2e663cbafe26a8364d71af1f45d02c4f6f6edf6
parentcccb78f09363140d873e8d26355593e22d0cfcea
sulogin-shell: do daemon-reload before starting default target

If the user modifies configuration, e.g. /etc/fstab, they might forget to tell
systemd about the changes. Let's do a reload for them.

Note that doing a reload should be safe, because emergency and rescue modes are
"single threaded" and nothing should be doing changes at the point where we are
exiting from the sushell. Also, daemon-reload can be implicitly called at
various moments, so we can ignore the case where the user did some incompatible
changes on disk and is counting on systemd never reloading and picking them up.

C.f. #7565.
src/sulogin-shell/sulogin-shell.c