Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147354 - udev-100(-r1) breaks network interface renaming in 10-local.rules
Summary: udev-100(-r1) breaks network interface renaming in 10-local.rules
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-12 11:56 UTC by Patrick
Modified: 2006-09-13 21:37 UTC (History)
2 users (show)

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 2006-09-12 11:56:17 UTC
I set up network renaming in /etc/udev/rules.d/10-local.rules like this:

KERNEL=="eth*", SYSFS{address}=="00:13:77:ab:cd:ef", NAME="lan"
KERNEL=="eth*", SYSFS{address}=="00:13:02:ab:cd:ef", NAME="wlan"

(as this is the recommended method in net.example).

Since the update to udev-100 (and still in -r1), this doesn't have an effect anymore. At least not on boot. So the network scripts don't work, because there are no interfaces called lan and wlan (but eth0 and eth1). When I call udevstart manually, it works though... (?)

By the way: This is the 100th udev release, and perhaps the 100th bug which breaks something...
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-09-12 12:05:10 UTC
Try ATTR{address}=="00:13:77:ab:cd:ef", no idea why the backwards compatibility thing doesn't work. :/
Comment 2 Patrick 2006-09-12 12:41:41 UTC
Hm... now it also works with SYSFS - I deleted /etc/udev/rules.d/* except 10-local.rules before installing udev-100-r2 again, I think there were some old rules that haven't been deleted due to config-protect.

I can't reproduce this behaviour anymore, so I'm marking this bug as invalid. Let's see if somebody else runs into that problem...

Cheers, Patrick.
Comment 3 Greg Kroah-Hartman (RETIRED) gentoo-dev 2006-09-13 17:09:14 UTC
(In reply to comment #2)
> Hm... now it also works with SYSFS - I deleted /etc/udev/rules.d/* except
> 10-local.rules before installing udev-100-r2 again, I think there were some old
> rules that haven't been deleted due to config-protect.
> 
> I can't reproduce this behaviour anymore, so I'm marking this bug as invalid.
> Let's see if somebody else runs into that problem...

I'd recommend dropping your 10-local.rules file for network devices, and let the scripts create a rule for the network devices automatically.  Delete the file (or move it somewhere else, then reboot or just load the network module.  Then look in the 70-persistent-net.rules file for the new rules for that network device.  If you don't like the name, change it there.


Comment 4 Patrick 2006-09-13 21:37:20 UTC
(In reply to comment #3)
> I'd recommend dropping your 10-local.rules file for network devices, and let
> the scripts create a rule for the network devices automatically.  Delete the
> file (or move it somewhere else, then reboot or just load the network module. 
> Then look in the 70-persistent-net.rules file for the new rules for that
> network device.  If you don't like the name, change it there.

I thought about that. But you know, I like to wrap up my customisations in one place, which is then easily maintainable. I prefer not to change a couple of .rules files on every update and every system.