Skip to content

Commit

Permalink
nixos/dhcpcd: Wait for devices to settle
Browse files Browse the repository at this point in the history
  • Loading branch information
srhb authored and globin committed Aug 21, 2018
1 parent 6897945 commit 4c6171c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/services/networking/dhcpcd.nix
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,9 @@ in
{ description = "DHCP Client";

wantedBy = [ "multi-user.target" ] ++ optional (!hasDefaultGatewaySet) "network-online.target";
wants = [ "network.target" ];
wants = [ "network.target" "systemd-udev-settle.service" ];
before = [ "network.target" ];
after = [ "systemd-udev-settle.service" ];

# Stopping dhcpcd during a reconfiguration is undesirable
# because it brings down the network interfaces configured by
Expand Down

0 comments on commit 4c6171c

Please sign in to comment.