chiark / gitweb /
units: networkd - order after udev
authorTom Gundersen <teg@jklm.no>
Sat, 6 Sep 2014 20:37:31 +0000 (22:37 +0200)
committerTom Gundersen <teg@jklm.no>
Mon, 8 Sep 2014 13:07:51 +0000 (15:07 +0200)
This way we are sure that /dev/net/tun has been given the right permissions before we try to connect to it.
Ideally, we should create tun/tap devices over netlink, and then this whole issue would go away.

units/systemd-networkd.service.in

index f33c65e6ff07e433a3c81cddfc02183c3e630ba6..fe92da21235f14aff3f73a4b888c031d2e79eb9e 100644 (file)
@@ -10,7 +10,9 @@ Description=Network Service
 Documentation=man:systemd-networkd.service(8)
 ConditionCapability=CAP_NET_ADMIN
 DefaultDependencies=no
 Documentation=man:systemd-networkd.service(8)
 ConditionCapability=CAP_NET_ADMIN
 DefaultDependencies=no
-After=dbus.service network-pre.target systemd-sysusers.service
+# dbus.service can be dropped once on kdbus, and systemd-udevd.service can be
+# dropped once tuntap is moved to netlink
+After=systemd-udevd.service dbus.service network-pre.target systemd-sysusers.service
 Before=network.target multi-user.target shutdown.target
 Conflicts=shutdown.target
 Wants=network.target
 Before=network.target multi-user.target shutdown.target
 Conflicts=shutdown.target
 Wants=network.target