summaryrefslogtreecommitdiff
path: root/rules/80-net-name-slot.rules
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-08-01 12:31:38 +0200
committerAnthony G. Basile <blueness@gentoo.org>2013-09-10 05:30:35 -0400
commitd153ba235b110028dde5565973f1c584d5fc5619 (patch)
tree8ccf072489ed035f1d59875453d8afaf048f6de0 /rules/80-net-name-slot.rules
parent0e899aa178b8c83f440927cbd10fb9fd7f951fb6 (diff)
80-net-name-slot.rules: only rename network interfaces on ACTION=="add"
Otherwise systemd-udevd will rename on "change" and "move" events, resulting in weird renames in combination with biosdevname systemd-udevd[355]: renamed network interface eth0 to em1 systemd-udevd[355]: renamed network interface eth1 to p3p2 systemd-udevd[357]: renamed network interface eth0 to p3p1 systemd-udevd[429]: renamed network interface p3p2 to ens3f1 systemd-udevd[428]: renamed network interface p3p1 to ens3f0 systemd-udevd[426]: renamed network interface em1 to enp63s0 or systemd-udevd[356]: renamed network interface eth0 to em1 systemd-udevd[356]: renamed network interface eth0 to p3p1 systemd-udevd[420]: renamed network interface p3p1 to ens3f0 systemd-udevd[418]: renamed network interface em1 to enp63s0 systemd-udevd[421]: renamed network interface eth1 to p3p1
Diffstat (limited to 'rules/80-net-name-slot.rules')
-rw-r--r--rules/80-net-name-slot.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/80-net-name-slot.rules b/rules/80-net-name-slot.rules
index 15b5bc4107..c5f1b3885b 100644
--- a/rules/80-net-name-slot.rules
+++ b/rules/80-net-name-slot.rules
@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update
-ACTION=="remove", GOTO="net_name_slot_end"
+ACTION!="add", GOTO="net_name_slot_end"
SUBSYSTEM!="net", GOTO="net_name_slot_end"
NAME!="", GOTO="net_name_slot_end"