generator.c: systemd-fsck-root.service conflict with shutdown.target

Otherwise a "reboot" or "poweroff" in the initramfs will have to wait
until systemd-fsck-root.service has completed, which might never happen
if the root device never shows up.
This commit is contained in:
Harald Hoyer 2018-11-26 11:41:29 +01:00 committed by Lennart Poettering
parent 938dbb292a
commit 4e9322048b
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ static int write_fsck_sysroot_service(const char *dir, const char *what) {
"BindsTo=%3$s\n"
"After=initrd-root-device.target local-fs-pre.target %3$s\n"
"Before=shutdown.target\n"
"Conflicts=shutdown.target\n"
"\n"
"[Service]\n"
"Type=oneshot\n"