diff options
Diffstat (limited to 'rules')
-rw-r--r-- | rules/80-net-name-slot.rules | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rules/80-net-name-slot.rules b/rules/80-net-name-slot.rules index e83eb3ff5f..15b5bc4107 100644 --- a/rules/80-net-name-slot.rules +++ b/rules/80-net-name-slot.rules @@ -4,10 +4,8 @@ ACTION=="remove", GOTO="net_name_slot_end" SUBSYSTEM!="net", GOTO="net_name_slot_end" NAME!="", GOTO="net_name_slot_end" -IMPORT{cmdline}="net.predictable-names" -ENV{net.predictable-names}=="0", GOTO="net_name_slot_end" -IMPORT{cmdline}="rd.net.predictable-names" -ENV{rd.net.predictable-names}=="0", TEST=="/etc/initrd-release", GOTO="net_name_slot_end" +IMPORT{cmdline}="net.ifnames" +ENV{net.ifnames}=="0", GOTO="net_name_slot_end" NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}" NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}" |