From ee0f81de5ef04d8ef54041e022c25f820bbb7bc1 Mon Sep 17 00:00:00 2001 From: Tino Breddin Date: Sun, 30 Nov 2014 10:37:18 +0100 Subject: [PATCH] Fix filename for udev network interface rules From http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/ You disable the assignment of fixed names, so that the unpredictable kernel names are used again. For this, simply mask udev's rule file for the default policy: ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules (since v209: this file was called 80-net-name-slot.rules in release v197 through v208) --- .../{80-net-name-slot.rules => 80-net-setup-link.rules} | 0 nixos/modules/services/hardware/udev.nix | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename nixos/modules/services/hardware/{80-net-name-slot.rules => 80-net-setup-link.rules} (100%) diff --git a/nixos/modules/services/hardware/80-net-name-slot.rules b/nixos/modules/services/hardware/80-net-setup-link.rules similarity index 100% rename from nixos/modules/services/hardware/80-net-name-slot.rules rename to nixos/modules/services/hardware/80-net-setup-link.rules diff --git a/nixos/modules/services/hardware/udev.nix b/nixos/modules/services/hardware/udev.nix index 2a6f4cfb4e37..39180f4d37ec 100644 --- a/nixos/modules/services/hardware/udev.nix +++ b/nixos/modules/services/hardware/udev.nix @@ -88,7 +88,7 @@ let done ${optionalString config.networking.usePredictableInterfaceNames '' - cp ${./80-net-name-slot.rules} $out/80-net-name-slot.rules + cp ${./80-net-setup-link.rules} $out/80-net-setup-link.rules ''} # If auto-configuration is disabled, then remove