summaryrefslogtreecommitdiffstats
path: root/units/systemd-networkd.service.in
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-16 09:46:26 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-12-16 09:49:39 +0100
commite053f49272e46c2ba941cbd3fd8bf07b089b2917 (patch)
tree798546466ea50c9bd35f548403734642aa5e23a5 /units/systemd-networkd.service.in
parenttest: add testcases for net.ifname-policy= kernel command line argument (diff)
downloadsystemd-e053f49272e46c2ba941cbd3fd8bf07b089b2917.tar.xz
systemd-e053f49272e46c2ba941cbd3fd8bf07b089b2917.zip
units: enable systemd-network-generator by default
It is used by udevd and networkd. Since udevd is enabled statically, let's also change the preset to "on". networkd is opt-in, so let's pull in the generator when enabling networkd too.
Diffstat (limited to 'units/systemd-networkd.service.in')
-rw-r--r--units/systemd-networkd.service.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/units/systemd-networkd.service.in b/units/systemd-networkd.service.in
index 6acce036df..95dd2665b2 100644
--- a/units/systemd-networkd.service.in
+++ b/units/systemd-networkd.service.in
@@ -56,6 +56,10 @@ WantedBy=multi-user.target
Also=systemd-networkd.socket
Alias=dbus-org.freedesktop.network1.service
+# The output from this generator is used by udevd and networkd. Enable it by
+# default when enabling systemd-networkd.service.
+Also=systemd-network-generator.service
+
# We want to enable systemd-networkd-wait-online.service whenever this service
# is enabled. systemd-networkd-wait-online.service has
# WantedBy=network-online.target, so enabling it only has an effect if