From d72823444048e96fb9ad8f682e139655810c95db Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 11 Jul 2016 12:01:25 +0200 Subject: machines/tyree: Avoid renaming network interfaces This seems to be related to this bug: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1434986 The problem here is a race condition, because NetworkManager is trying to pick up the device _before_ the renaming and then fails to correctly identify it. Another solution would be to reorder the service unit after the networkd service, but that would only work well if the interface is plugged in at boot time and if it's pluggen in/out afterwards we likely have the same problem again. Signed-off-by: aszlig --- machines/aszlig/managed/tyree.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'machines/aszlig') diff --git a/machines/aszlig/managed/tyree.nix b/machines/aszlig/managed/tyree.nix index 9a090063..613f8a74 100644 --- a/machines/aszlig/managed/tyree.nix +++ b/machines/aszlig/managed/tyree.nix @@ -43,6 +43,9 @@ networking.networkmanager.enable = true; networking.useNetworkd = true; + # Temporary, seems to be a bug in NetworkManager: + networking.usePredictableInterfaceNames = false; + nix.maxJobs = 4; nix.useSandbox = true; nix.readOnlyStore = true; -- cgit 1.4.1