mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 19:55:41 +03:00
network: make network-setup service do not depend on udevd directly; fix typo with GRE tunnels
Otherwise, when doing nixos switch to major changes (typically when stdenv changes), udevd service gets loaded after addresses, which causes addresses service to wait indefinitely for the device and fail. Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
2f5bd177a3
commit
201f27715e
1 changed files with 2 additions and 1 deletions
|
@ -77,6 +77,7 @@ let
|
|||
(hasAttr dev cfg.macvlans) ||
|
||||
(hasAttr dev cfg.sits) ||
|
||||
(hasAttr dev cfg.vlans) ||
|
||||
(hasAttr dev cfg.greTunnels) ||
|
||||
(hasAttr dev cfg.vswitches)
|
||||
then [ "${dev}-netdev.service" ]
|
||||
else optional (!config.boot.isContainer) (subsystemDevice dev);
|
||||
|
@ -94,7 +95,7 @@ let
|
|||
networkSetup = lib.mkIf needNetworkSetup
|
||||
{ description = "Networking Setup";
|
||||
|
||||
after = [ "network-pre.target" "systemd-udevd.service" "systemd-sysctl.service" ];
|
||||
after = [ "network-pre.target" ];
|
||||
before = [ "network.target" "shutdown.target" ];
|
||||
wants = [ "network.target" ];
|
||||
# exclude bridges from the partOf relationship to fix container networking bug #47210
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue