]> git.ipfire.org Git - thirdparty/systemd.git/commit
units: add Wants=initrd-cleanup.service to initrd-switch-root.target (#4345)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 11 Oct 2016 12:36:14 +0000 (21:36 +0900)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Oct 2016 12:36:14 +0000 (14:36 +0200)
commita8cb1dc3e0fa81affd01c8ed3df35e4c4520a24e
tree430ac24e8ea3947d5a3c4fd1388d97d598881e92
parent1f1a5e8b403332eb0788ace2fa44f07c588a2464
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.
units/initrd-switch-root.target