Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #19464 from kampfschlaefer/fix_sit_evaluation

sit interfaces: fix dependency tracking

authored by

Jörg Thalheim and committed by
GitHub
2cdac99d 2ca88333

+2 -2
+2 -2
nixos/modules/tasks/network-interfaces-scripted.nix
··· 50 50 if (config.boot.isContainer == false) 51 51 then 52 52 # Trust udev when not in the container 53 - [ (subsystemDevice dev) ] 53 + optional (dev != null) (subsystemDevice dev) 54 54 else 55 55 # When in the container, check whether the interface is built from other definitions 56 56 if (hasAttr dev cfg.bridges) || ··· 333 333 334 334 createSitDevice = n: v: nameValuePair "${n}-netdev" 335 335 (let 336 - deps = optionals (v.dev != null) (deviceDependency v.dev); 336 + deps = deviceDependency v.dev; 337 337 in 338 338 { description = "6-to-4 Tunnel Interface ${n}"; 339 339 wantedBy = [ "network-setup.service" (subsystemDevice n) ];