Merge pull request #39340 from xeji/interim-fix-39069

nixos/networkd: wait for udev to settle before starting networkd
This commit is contained in:
xeji 2018-04-29 20:45:09 +02:00 committed by GitHub
commit 1937b810b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -713,6 +713,9 @@ in
systemd.services.systemd-networkd = { systemd.services.systemd-networkd = {
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
restartTriggers = map (f: f.source) (unitFiles); 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 = { systemd.services.systemd-networkd-wait-online = {