diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2016-10-11 21:36:14 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-10-11 14:36:14 +0200 |
commit | a8cb1dc3e0fa81affd01c8ed3df35e4c4520a24e (patch) | |
tree | 430ac24e8ea3947d5a3c4fd1388d97d598881e92 /units | |
parent | 1f1a5e8b403332eb0788ace2fa44f07c588a2464 (diff) |
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.
Diffstat (limited to 'units')
-rw-r--r-- | units/initrd-switch-root.target | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/units/initrd-switch-root.target b/units/initrd-switch-root.target index f34768790b..934d82f667 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 |