Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 558894 - sys-fs/udev-216: udev fails to rename network interfaces if rules use capital letters for hex strings
Summary: sys-fs/udev-216: udev fails to rename network interfaces if rules use capital...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-27 09:09 UTC by Patrick Lauer
Modified: 2015-08-27 13:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.