]> git.proxmox.com Git - systemd.git/commitdiff
Only import net.ifaces cmdline property for network devices
authorMichael Biebl <biebl@debian.org>
Fri, 9 Aug 2013 11:38:23 +0000 (13:38 +0200)
committerMichael Biebl <biebl@debian.org>
Fri, 9 Aug 2013 11:48:15 +0000 (13:48 +0200)
otherwise the property is set for all devices.

debian/extra/rules/75-persistent-net-generator.rules

index 74eb4d7284f8774036c5a4d2219e4273a0fad47b..b6fcb917ee220b6ec6305b7170680caac3f0acdd 100644 (file)
 #   INTERFACE_NAME     requested name supplied by external tool
 #   INTERFACE_NEW      new interface name returned by rule writer
 
-IMPORT{cmdline}="net.ifnames"
-ENV{net.ifnames}=="1",                  GOTO="persistent_net_generator_end"
 ACTION!="add",                         GOTO="persistent_net_generator_end"
 SUBSYSTEM!="net",                      GOTO="persistent_net_generator_end"
 
 # ignore the interface if a name has already been set
 NAME=="?*",                            GOTO="persistent_net_generator_end"
 
+# new predictable interface naming scheme
+IMPORT{cmdline}="net.ifnames"
+ENV{net.ifnames}=="1",                 GOTO="persistent_net_generator_end"
+
 # device name whitelist
 KERNEL!="eth*|ath*|wlan*[0-9]|msh*|ra*|sta*|ctc*|lcs*|hsi*", \
                                        GOTO="persistent_net_generator_end"