Summary: | sys-fs/udev-189: Existing persistent net rules are ignored | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | James Le Cuirot <chewi> |
Component: | [OLD] Core system | Assignee: | udev maintainers <udev-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bug, maggu2810, mattsch |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
James Le Cuirot
2012-09-03 08:14:52 UTC
(In reply to comment #0) > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", > ATTR{address}=="6c:f0:49:51:d7:e3", ATTR{type}=="1", KERNEL=="eth*", > NAME="eth0" > SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", > ATTR{address}=="6c:f0:49:51:d7:f3", ATTR{type}=="1", KERNEL=="eth*", > NAME="eth1" > > Under udev 189, it loads these two the wrong way round. I've tried fiddling > with the rules like removing ATTR{type} and calling them something other > than eth* but to no avail. I've had to drop back to 186 for the moment so I > can get my connection back. I was informed on #udev that you cannot just swap the device names now; you have to name them something completely different, so try this: SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="6c:f0:49:51:d7:e3", ATTR{type}=="1", KERNEL=="eth*", NAME="lan0" SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="6c:f0:49:51:d7:f3", ATTR{type}=="1", KERNEL=="eth*", NAME="lan1" Let me know if that works for you. I tried this before but it didn't work, maybe because I only ran udevadm trigger instead of rebooting. I tried again and it worked this time so thanks. But please mention this somewhere, I didn't find it documented *anywhere*. I have added ewarns to the ebuild with more information on this issue and pointing to the examples I gave you. Thanks for the report. Although this bug is closed, those that stray upon it may be interested in this remark: https://bugzilla.redhat.com/show_bug.cgi?id=782145#c3 In a nutshell, renaming to within the eth* namespace was never safe. I found the upstream bug after learning this the hard way. This also explains why the automatic rule generator functionality was removed. *** Bug 444604 has been marked as a duplicate of this bug. *** |