[Bug 868375] New: udev rules not applied at boot
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c0
Summary: udev rules not applied at boot
Classification: openSUSE
Product: openSUSE Factory
Version: 13.2 Milestone 0
Platform: Other
OS/Version: Other
Status: NEW
Severity: Major
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: seife@novell.slipkontur.de
QAContact: qa-bugs@suse.de
Found By: Third Party Developer/Partner
Blocker: ---
I have those udev rules for my netdevices:
seife@susi:~> grep -v ^# /etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:21:6a:ad:d7:6c", ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="wlan*", NAME="air"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:26:2d:f4:38:84", ATTR{dev_id}=="0x0", ATTR{type}=="1",
KERNEL=="eth*", NAME="cable"
however, my wired interface still gets the unpredictable interface name:
seife@susi:~> ip a |grep -A1 ^2:
2: enp0s25:
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c1
--- Comment #1 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c
zhang jiajun
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c2
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c3
--- Comment #3 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c4
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c5
--- Comment #5 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c6
--- Comment #6 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c7
--- Comment #7 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c9
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c10
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c11
--- Comment #11 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c12
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c13
--- Comment #13 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c14
--- Comment #14 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c15
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c16
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c17
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c18
--- Comment #18 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c19
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c20
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c21
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c22
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c23
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c24
--- Comment #24 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c25
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c26
--- Comment #26 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c27
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c28
--- Comment #28 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c29
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c30
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c31
--- Comment #31 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c32
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c33
Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c34
Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c35
--- Comment #35 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c36
--- Comment #36 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c37
--- Comment #37 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c38
Andrei Borzenkov
NAME 'enp0s25' /usr/lib/udev/rules.d/80-net-setup-link.rules:13 changing net interface name from 'cable' to 'enp0s25'
... lead me to believe it wants to change the name to enp0s25, which is really happening if I boot without net.ifnames=0
It will do it in NAME is empty. There is no indication in logs that it had been set. Now rules in /etc/udev/rules.d/70-persistent-net.rules have KERNEL=="eth*" ... and interface had already been renamed before. So KERNEL is actually "cable" DEVPATH=/devices/pci0000:00/0000:00:19.0/net/cable INTERFACE=cable Could you please delete KERNEL and retest? I have to think about how to add proper condition here. Now in the long run the problem will go away - kernel will add hints that interface had already been renamed and rules can just check it. But we need something for now. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c
Andrei Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c39
--- Comment #39 from Andrei Borzenkov
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c40
--- Comment #40 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c41
--- Comment #41 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c42
--- Comment #42 from Andrei Borzenkov
Also, you shouldn't use:
KERNEL=="eth*|new-name", NAME="new-name"
but
KERNEL=="?*", NAME="new-name"
Fine. I take it, you are going to fix udev persistent rule generator in Factory to use KERNEL=="?*", right? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c43
--- Comment #43 from Robert Milasan
https://bugzilla.novell.com/show_bug.cgi?id=868375
https://bugzilla.novell.com/show_bug.cgi?id=868375#c44
--- Comment #44 from Stefan Seyfried
http://bugzilla.novell.com/show_bug.cgi?id=868375
Robert Milasan
participants (1)
-
bugzilla_noreply@novell.com