diff options
author | Sarah Brofeldt <sbrofeldt@gmail.com> | 2018-08-21 09:51:33 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2018-08-22 00:20:28 +0200 |
commit | 4c6171c173ef5e50ecbbc1157c035147462ee721 (patch) | |
tree | ac94d49765bd75ef3eaee6a0f339f4c62ea6eed0 /nixos/modules/services/networking/dhcpcd.nix | |
parent | 6897945879859956c4165efdd4bdf04ab930fa69 (diff) |
nixos/dhcpcd: Wait for devices to settle
Diffstat (limited to 'nixos/modules/services/networking/dhcpcd.nix')
-rw-r--r-- | nixos/modules/services/networking/dhcpcd.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/dhcpcd.nix b/nixos/modules/services/networking/dhcpcd.nix index 019c8fd9ec48..efdbca5d52e8 100644 --- a/nixos/modules/services/networking/dhcpcd.nix +++ b/nixos/modules/services/networking/dhcpcd.nix @@ -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 |