Summary: | udev 090 - eth0 and eth1 ignore rules to swap their names | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | dswhite42 |
Component: | [OLD] Core system | Assignee: | Greg Kroah-Hartman (RETIRED) <gregkh> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | f.nijdam, jrmalaq, m.debruijne |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 126089 | ||
Attachments: | same for udev 079-r1 on AMD64 with linux-2.6.15-gentoo-r7 |
Description
dswhite42
2006-04-22 14:50:35 UTC
Some further notes: 1) I noticed this text during the boot process: udevd-event[2528]: rename_net_if: error changing net interface name: File exists udevd-event[2606]: rename_net_if: error changing net interface name: File exists udevd-event[2746]: rename_net_if: error changing net interface name: File exists This made me suspect that the reason eth0 couldn't be renamed to eth1 was that an eth1 device had already been created by the time these udev rules were being run. And since something had already determined which NICs would be eth0, eth1, and eth2, I couldn't swap any of their names with each other. 2) To test this, I tried these modified udev rules: KERNEL=="eth*", SYSFS{address}=="00:50:8d:f5:a8:54", NAME="neweth0" KERNEL=="eth*", SYSFS{address}=="00:a0:cc:60:c8:43", NAME="neweth1" KERNEL=="eth*", SYSFS{address}=="00:50:8d:00:00:f4:a8:54", NAME="neweth2" Sure enough, when I rebooted, ifconfig showed neweth0, neweth1, and neweth2 instead of eth0, eth1, and eth2. So I'm guessing something in the latest udev package is triggering an event that causes eth0, eth1, and eth2 to be created, which cannot be overwritten by my custom eth0, eth1 and eth2 assignments. 3) I tried these various settings of RC_COLDPLUG in /etc/conf.d/rc just to see if it would help. RC_COLDPLUG="yes" RC_COLDPLUG="!net.eth*" RC_COLDPLUG="no" None of them made any difference - the problem still remains. Created attachment 85855 [details]
same for udev 079-r1 on AMD64 with linux-2.6.15-gentoo-r7
see description. Nice thing is that indeed the rename for eth2 succeeds!
[ebuild R ] sys-fs/udev-087 setting udev_log="err" in udev.conf comes up with a UDEV failure message -device in use- sitching to init 1 and running nameif does the job. Probably fixed in 095 (from the Changelog): "netif rename: optimistic loop for the name to become free" Fixed in latest version of udev, please upgrade. forgot to mark fixed... |