be52b9f
From 33e3e7fbcce582c26604d997df89e71908ac7999 Mon Sep 17 00:00:00 2001
be52b9f
From: Harald Hoyer <harald@redhat.com>
be52b9f
Date: Thu, 1 Aug 2013 12:31:38 +0200
51b11df
Subject: [PATCH] 80-net-name-slot.rules: only rename network interfaces on
51b11df
 ACTION=="add"
be52b9f
be52b9f
Otherwise systemd-udevd will rename on "change" and "move" events,
be52b9f
resulting in weird renames in combination with biosdevname
be52b9f
be52b9f
systemd-udevd[355]: renamed network interface eth0 to em1
be52b9f
systemd-udevd[355]: renamed network interface eth1 to p3p2
be52b9f
systemd-udevd[357]: renamed network interface eth0 to p3p1
be52b9f
systemd-udevd[429]: renamed network interface p3p2 to ens3f1
be52b9f
systemd-udevd[428]: renamed network interface p3p1 to ens3f0
be52b9f
systemd-udevd[426]: renamed network interface em1 to enp63s0
be52b9f
be52b9f
or
be52b9f
be52b9f
systemd-udevd[356]: renamed network interface eth0 to em1
be52b9f
systemd-udevd[356]: renamed network interface eth0 to p3p1
be52b9f
systemd-udevd[420]: renamed network interface p3p1 to ens3f0
be52b9f
systemd-udevd[418]: renamed network interface em1 to enp63s0
be52b9f
systemd-udevd[421]: renamed network interface eth1 to p3p1
be52b9f
---
be52b9f
 rules/80-net-name-slot.rules | 2 +-
be52b9f
 1 file changed, 1 insertion(+), 1 deletion(-)
be52b9f
be52b9f
diff --git a/rules/80-net-name-slot.rules b/rules/80-net-name-slot.rules
674ca7d
index 15b5bc4107..c5f1b3885b 100644
be52b9f
--- a/rules/80-net-name-slot.rules
be52b9f
+++ b/rules/80-net-name-slot.rules
be52b9f
@@ -1,6 +1,6 @@
be52b9f
 # do not edit this file, it will be overwritten on update
be52b9f
 
be52b9f
-ACTION=="remove", GOTO="net_name_slot_end"
be52b9f
+ACTION!="add", GOTO="net_name_slot_end"
be52b9f
 SUBSYSTEM!="net", GOTO="net_name_slot_end"
be52b9f
 NAME!="", GOTO="net_name_slot_end"
be52b9f