Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 558894

Summary: sys-fs/udev-216: udev fails to rename network interfaces if rules use capital letters for hex strings
Product: Gentoo Linux Reporter: Patrick Lauer <patrick>
Component: [OLD] UnspecifiedAssignee: udev maintainers <udev-bugs>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick Lauer gentoo-dev 2015-08-27 09:09:43 UTC
# cat /etc/udev/rules.d/010_netinterfaces.rules 
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="a0:36:9f:34:51:64", NAME="eno1"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="a0:36:9f:34:51:66", NAME="eno2"

This works

# cat /etc/udev/rules.d/010_netinterfaces.rules 
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="A0:36:9F:34:51:64", NAME="eno1"
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="A0:36:9F:34:51:66", NAME="eno2"

This fails, network devices end up with funny names like enp65s0f0

sys-fs/udev-216::gentoo  USE="acl firmware-loader kmod -doc -gudev -introspection (-selinux) -static-libs"
Comment 1 Mike Gilbert gentoo-dev 2015-08-27 12:54:00 UTC
I'm pretty sure that's intentional; sysfs exports the information in lower-case, and udev just does plain binary comparison.
Comment 2 Mike Gilbert gentoo-dev 2015-08-27 13:07:43 UTC
Relevent discussion upstream from several years ago.

http://thread.gmane.org/gmane.linux.hotplug.devel/12461/focus=12467

I'm going to call this a wontfix unless upstream can be persuaded.