From f0ad3e6b9652fe785245934ff8604cc897d3b8f4 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 7 May 2023 11:15:27 +0200 Subject: units: Add missing dependencies on initrd-switch-root.target These are all services that valid to be run in the initrd, so let's make sure they have the appropriate dependencies on initrd-switch-root.target so that they are stopped when we're about to switch root. --- units/systemd-networkd-wait-online@.service.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'units/systemd-networkd-wait-online@.service.in') diff --git a/units/systemd-networkd-wait-online@.service.in b/units/systemd-networkd-wait-online@.service.in index b7a1e409f4..83dacf7007 100644 --- a/units/systemd-networkd-wait-online@.service.in +++ b/units/systemd-networkd-wait-online@.service.in @@ -12,10 +12,10 @@ Description=Wait for Network Interface %i to be Configured Documentation=man:systemd-networkd-wait-online.service(8) ConditionCapability=CAP_NET_ADMIN DefaultDependencies=no -Conflicts=shutdown.target +Conflicts=shutdown.target initrd-switch-root.target BindsTo=systemd-networkd.service After=systemd-networkd.service -Before=network-online.target shutdown.target +Before=network-online.target shutdown.target initrd-switch-root.target [Service] Type=oneshot -- cgit v1.2.1