From 5b5ec138c65d587ecac1be5790ab9854e49a0446 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 14 Sep 2022 13:00:43 +0100 Subject: [PATCH] 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. --- units/initrd-switch-root.service | 1 + 1 file changed, 1 insertion(+) 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 -- 2.25.1