On 2013-04-03 6:28 PM, Mick <[email protected]> wrote:
On Wednesday 03 Apr 2013 20:46:37 Bruce Hill wrote:
Therefore, all's well that's still working! And AFAIR, on at least 2 of
those machines, the 70-persistent-net.rules was never something I did
manually.
Right, it used to be auto-generated by udev scripts. With udev-200 you are
meant to remove it along with any other files from your /etc/udev/rules.d/
If you left them there and their syntax is still valid, then udev will parse
them and do as is told.
Ok, so...
I just realized that my current/existing 70-persistent-net.rules syntax
is different from the 'old format' referenced in the udev upgrade news
item. I have:
# This file was automatically generated by the /lib/udev/write_net_rules
# program, probably run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single line.
# PCI device 0x10de:0x0057 (forcedeth)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:e0:81:54:9c:8b", KERNEL=="eth*",
NAME="eth1"
# PCI device 0x10de:0x0057 (forcedeth)
SUBSYSTEM=="net", DRIVERS=="?*", ATTR{address}=="00:e0:81:54:9c:8a", KERNEL=="eth*",
NAME="eth0"
Note the 'DRIVERS==' and 'KERNEL==' items that are not showing in the
news item example for the old format, as well as the LACK of the
'ACTION==' item... is this dependent on the interface type? Or is mine
'wrong' (and just has been working by accident all these years)?
So, now I'm even more confused.
If I just want to totally disable the new behavior and keep the old, I
know I just add 'net.ifnames=0' on the kernel command-line, but...
Do I just rename the above file to something like
'70-my-net-names.rules', keeping the content the same?
Or do I need to edit the lines? And if so, to what? Do I remove the
'DRIVERS==' and 'KERNEL==' items and add the 'ACTION==' item?
Do I change the eth0 to net0 (and create the symlink and update
rc-update as discussed earlier)?
crap-crud...