mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-22 22:03:43 +03: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. (cherry picked from commit 5b5ec138c65d587ecac1be5790ab9854e49a0446)
This commit is contained in:
parent
45fb64c54b
commit
0bfdc91807
@ -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…
x
Reference in New Issue
Block a user