sit interfaces: fix dependency tracking

This commit is contained in:
Arnold Krille 2016-10-11 23:18:02 +02:00
parent 550df4dc47
commit f16f4daa5b

View File

@ -50,7 +50,7 @@ in
if (config.boot.isContainer == false) if (config.boot.isContainer == false)
then then
# Trust udev when not in the container # Trust udev when not in the container
[ (subsystemDevice dev) ] optional (dev != null) (subsystemDevice dev)
else else
# When in the container, check whether the interface is built from other definitions # When in the container, check whether the interface is built from other definitions
if (hasAttr dev cfg.bridges) || if (hasAttr dev cfg.bridges) ||
@ -333,7 +333,7 @@ in
createSitDevice = n: v: nameValuePair "${n}-netdev" createSitDevice = n: v: nameValuePair "${n}-netdev"
(let (let
deps = optionals (v.dev != null) (deviceDependency v.dev); deps = deviceDependency v.dev;
in in
{ description = "6-to-4 Tunnel Interface ${n}"; { description = "6-to-4 Tunnel Interface ${n}";
wantedBy = [ "network-setup.service" (subsystemDevice n) ]; wantedBy = [ "network-setup.service" (subsystemDevice n) ];