mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 10:13:34 +08:00
units: make sure that initrd-switch-root.service pulls in .target
Normally we queue initrd-switch-root.target/isolate, which pulls in the service via Wants= in the .target unit file. But if the service is instead started directly, there may be nothing pulling in the target. Let's make sure that the reference exists.
This commit is contained in:
parent
3449814b8b
commit
5b5ec138c6
@ -13,6 +13,7 @@ Description=Switch Root
|
||||
AssertPathExists=/etc/initrd-release
|
||||
|
||||
DefaultDependencies=no
|
||||
Wants=initrd-switch-root.target
|
||||
AllowIsolate=yes
|
||||
OnFailure=emergency.target
|
||||
OnFailureJobMode=replace-irreversibly
|
||||
|
Loading…
Reference in New Issue
Block a user