ryantimwilson / rpms / systemd

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