summaryrefslogtreecommitdiffstats
path: root/units
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-03-27 12:55:55 +0200
committerMartin Pitt <martinpitt@users.noreply.github.com>2017-03-27 12:55:55 +0200
commit9e49656037717b96c06b1f1507a41550bdb2c795 (patch)
tree84ca79d5523e5509b87e9c10864df8b6943f1462 /units
parentrules: add a rule to set /dev/kvm access mode and ownership (#5597) (diff)
downloadsystemd-9e49656037717b96c06b1f1507a41550bdb2c795.tar.xz
systemd-9e49656037717b96c06b1f1507a41550bdb2c795.zip
units: make enablement of s-n-wait-online.service follow systemd-networkd.service (#5635)
In 58a6dd15582c038a25bd7059435833943e2e4617 s-n-wait-online.service was added to presets to synchronize the presets with the state after installation. But it is harmful to have s-n-wait-online.service enabled when s-n.service is disabled, because s-n-wait-online.service has Requsite=s-n.service and cannot be activated. Thus remove s-n-wait-online.service from presets again, and let it be enabled whenever s-n.service is enabled. During installation we create enablement symlinks by hand, and since s-n.service is enabled, s-n-w-o.service should be enabled too, so the symlink should still be created during installation. https://bugzilla.redhat.com/show_bug.cgi?id=1433459#c15
Diffstat (limited to 'units')
-rw-r--r--units/systemd-networkd.service.m4.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/units/systemd-networkd.service.m4.in b/units/systemd-networkd.service.m4.in
index c3f153046a..5811b00819 100644
--- a/units/systemd-networkd.service.m4.in
+++ b/units/systemd-networkd.service.m4.in
@@ -42,3 +42,9 @@ ReadWritePaths=/run/systemd
[Install]
WantedBy=multi-user.target
Also=systemd-networkd.socket
+
+# 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
+# network-online.target itself is enabled or pulled in by some other unit.
+Also=systemd-networkd-wait-online.service