diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-09-14 13:00:43 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-09-15 14:59:11 +0200 |
commit | 5b5ec138c65d587ecac1be5790ab9854e49a0446 (patch) | |
tree | b9917dd9491c9dfe38d3d88738ef12a625349a7a /units | |
parent | 3449814b8bda96e0a7d14fe1287f85ba9b269d8e (diff) | |
download | systemd-5b5ec138c65d587ecac1be5790ab9854e49a0446.tar.gz |
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.
Diffstat (limited to 'units')
-rw-r--r-- | units/initrd-switch-root.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/initrd-switch-root.service b/units/initrd-switch-root.service index 9914d26408..b19b7bbc21 100644 --- a/units/initrd-switch-root.service +++ b/units/initrd-switch-root.service @@ -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 |