From 236703f9f3ac1d0904d63940d00f885dfeeb854b Mon Sep 17 00:00:00 2001 From: xeji Date: Sun, 22 Apr 2018 20:10:15 +0200 Subject: nixos/systemd-networkd: wait for udev to settle ... to avoid race condition between udevd renaming and networkd configuring interfaces (39069) --- nixos/modules/system/boot/networkd.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'nixos/modules') diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index eea10613ea58..74d17cf9787e 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -712,6 +712,9 @@ in systemd.services.systemd-networkd = { wantedBy = [ "multi-user.target" ]; restartTriggers = map (f: f.source) (unitFiles); + # prevent race condition with interface renaming (#39069) + requires = [ "systemd-udev-settle.service" ]; + after = [ "systemd-udev-settle.service" ]; }; systemd.services.systemd-networkd-wait-online = { -- cgit 1.4.1