diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-05-07 11:15:27 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-05-13 02:14:02 +0800 |
commit | f0ad3e6b9652fe785245934ff8604cc897d3b8f4 (patch) | |
tree | cfda6942a1fa113e871af55c1534fb6f01ab34f1 /units/systemd-networkd.service.in | |
parent | e71254edb0e0c52c7cb2dcf5de0bbf5b95a42809 (diff) | |
download | systemd-f0ad3e6b9652fe785245934ff8604cc897d3b8f4.tar.gz |
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.
Diffstat (limited to 'units/systemd-networkd.service.in')
-rw-r--r-- | units/systemd-networkd.service.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in index 585bbe5e6d..9f0af57fdc 100644 --- a/units/systemd-networkd.service.in +++ b/units/systemd-networkd.service.in @@ -15,8 +15,8 @@ ConditionCapability=CAP_NET_ADMIN DefaultDependencies=no # systemd-udevd.service can be dropped once tuntap is moved to netlink After=systemd-networkd.socket systemd-udevd.service network-pre.target systemd-sysusers.service systemd-sysctl.service -Before=network.target multi-user.target shutdown.target -Conflicts=shutdown.target +Before=network.target multi-user.target shutdown.target initrd-switch-root.target +Conflicts=shutdown.target initrd-switch-root.target Wants=systemd-networkd.socket network.target [Service] |