From: Yu Watanabe Date: Tue, 11 Oct 2016 12:36:14 +0000 (+0900) Subject: units: add Wants=initrd-cleanup.service to initrd-switch-root.target (#4345) X-Git-Tag: v232~116 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8cb1dc3e0fa81affd01c8ed3df35e4c4520a24e;p=thirdparty%2Fsystemd.git units: add Wants=initrd-cleanup.service to initrd-switch-root.target (#4345) `systemctl isolate initrd-switch-root.target` called by initrd-cleanup.service kills initrd-cleanup.service itself. Then, initrd-cleanup.service failed and system goes to emergency shell. To prevent this problem, this commit adds `Wants=initrd-cleanup.service` to initrd-switch-root.target. fixes: #4343. --- diff --git a/units/initrd-switch-root.target b/units/initrd-switch-root.target index f34768790b0..934d82f6670 100644 --- a/units/initrd-switch-root.target +++ b/units/initrd-switch-root.target @@ -12,5 +12,5 @@ DefaultDependencies=no Requires=initrd-switch-root.service Before=initrd-switch-root.service AllowIsolate=yes -Wants=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target systemd-journald.service +Wants=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target systemd-journald.service initrd-cleanup.service After=initrd-udevadm-cleanup-db.service initrd-root-fs.target initrd-fs.target emergency.service emergency.target