On Wed, Apr 03, 2013 at 08:06:20PM +0200, Jörg Schaible wrote: > Hi, > > Grant Edwards wrote: > > > On 2013-04-03, Neil Bothwick <n...@digimed.co.uk> wrote: > > > >> Have you read the news item? > > > > Yes. I found it rather confusing. > > > > It refers to a "new format" for rules, but the examples use the exact > > same format as the old rules. > > > > It talks about how 80-net-name-slot.rules needs to be either an empty > > file or a synmlink to /dev/null if you want to disable the new naming > > scheme -- but that doesn't seem to be right. After the upgrade my > > 80-net-name-slot.rules file was neither an empty file nor a symlink to > > /dev/null, but I'm still getting the same old names. > > same for me. I followed the upgrade guide and removed any 70-* files, > renamed the net.eth0 link to the new scheme net.enp0s1 just to to find out > that the kernel could not bring up a network with the such a device. The > machine booted fine after using eth0 instead again. One a second machine I > kept eth0 immediately and it booted without problems afterwards. > > >> It explains why the file should be renamed and also why you should > >> change the names in the rules to not use ethN. > > > > The only explanation I found was "the old way is now deprecated". > > And the new name simply did not work. > > - Jörg When the news item is too convoluted to understand without writing it on paper, and doing a diagram of my LAN, I just get out the USB SystemRescueCD and have it ready on first reboot. So far I've just sailed along as it's been since before last March or so when WilliamH first put out the news item about udev about to fubar the universe. I'd not wanted to go to or past udev-181, but kerframil told me to stop being scared and upgrade to stable, so I did. And here are the results, just upgrading, not changing ANY file:
mingdao@router ~ $ less /etc/udev/rules.d/80-net-name-slot.rules /etc/udev/rules.d/80-net-name-slot.rules: No such file or directory mingdao@router ~ $ eix sys-fs/udev [I] sys-fs/udev Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} Installed versions: 200^t(05:01:58 PM 04/02/2013)(acl firmware-loader kmod openrc -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) Homepage: http://www.freedesktop.org/wiki/Software/systemd Description: Linux dynamic and persistent device naming support (aka userspace devfs) [I] sys-fs/udev-init-scripts Available versions: 23^t ~24^t 25^t **9999^t Installed versions: 25^t(05:02:08 PM 04/02/2013) Homepage: http://www.gentoo.org Description: udev startup scripts for openrc Found 2 matches. mingdao@router ~ $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x8086:0x10d3 (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:05:ca:03:05:5d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x10d3 (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:05:ca:03:05:50", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x10de:0x03ef (forcedeth) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:6d:04:e8:1d:d9", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" mingdao@server ~ $ less /etc/udev/rules.d/80-net-name-slot.rules /etc/udev/rules.d/80-net-name-slot.rules: No such file or directory mingdao@server ~ $ eix sys-fs/udev [I] sys-fs/udev Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} Installed versions: 200^t(06:01:45 PM 04/02/2013)(acl firmware-loader kmod openrc -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) Homepage: http://www.freedesktop.org/wiki/Software/systemd Description: Linux dynamic and persistent device naming support (aka userspace devfs) [I] sys-fs/udev-init-scripts Available versions: 23^t ~24^t 25^t **9999^t Installed versions: 25^t(06:01:58 PM 04/02/2013) Homepage: http://www.gentoo.org Description: udev startup scripts for openrc Found 2 matches. mingdao@server ~ $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x14e4:0x1659 (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:d0:68:0b:87:66", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x1659 (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:d0:68:0b:87:67", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" mingdao@workstation ~ $ less /etc/udev/rules.d/80-net-name-slot.rules /etc/udev/rules.d/80-net-name-slot.rules: No such file or directory mingdao@workstation ~ $ eix sys-fs/udev [I] sys-fs/udev Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} Installed versions: 200^t(05:35:34 PM 04/02/2013)(firmware-loader gudev kmod openrc -acl -doc -hwdb -introspection -keymap -selinux -static-libs) Homepage: http://www.freedesktop.org/wiki/Software/systemd Description: Linux dynamic and persistent device naming support (aka userspace devfs) [I] sys-fs/udev-init-scripts Available versions: 23^t ~24^t 25^t **9999^t Installed versions: 25^t(05:35:12 PM 04/02/2013) Homepage: http://www.gentoo.org Description: udev startup scripts for openrc Found 2 matches. mingdao@workstation ~ $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x8086:0x10d3 (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1b:21:b8:e2:f8", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x10ec:0x8168 (r8169) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:6d:04:d2:6b:be", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" mingdao@router ~ $ less /etc/udev/rules.d/80-net-name-slot.rules /etc/udev/rules.d/80-net-name-slot.rules: No such file or directory mingdao@router ~ $ eix sys-fs/udev [I] sys-fs/udev Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} Installed versions: 200^t(05:01:58 PM 04/02/2013)(acl firmware-loader kmod openrc -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) Homepage: http://www.freedesktop.org/wiki/Software/systemd Description: Linux dynamic and persistent device naming support (aka userspace devfs) [I] sys-fs/udev-init-scripts Available versions: 23^t ~24^t 25^t **9999^t Installed versions: 25^t(05:02:08 PM 04/02/2013) Homepage: http://www.gentoo.org Description: udev startup scripts for openrc Found 2 matches. mingdao@router ~ $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x8086:0x10d3 (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:05:ca:03:05:5d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x10d3 (e1000e) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="68:05:ca:03:05:50", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x10de:0x03ef (forcedeth) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f4:6d:04:e8:1d:d9", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" mingdao@peter ~ $ less /etc/udev/rules.d/80-net-name-slot.rules /etc/udev/rules.d/80-net-name-slot.rules: No such file or directory mingdao@peter ~ $ eix sys-fs/udev [I] sys-fs/udev Available versions: [M]171-r10 197-r8^t ~198-r6^t ~199-r1^t 200^t **9999^t {{acl action_modeswitch build debug doc edd extras +firmware-loader floppy gudev hwdb introspection keymap +kmod +openrc +rule_generator selinux static-libs test}} Installed versions: 200^t(11:35:07 AM 04/01/2013)(firmware-loader kmod openrc -acl -doc -gudev -hwdb -introspection -keymap -selinux -static-libs) Homepage: http://www.freedesktop.org/wiki/Software/systemd Description: Linux dynamic and persistent device naming support (aka userspace devfs) [I] sys-fs/udev-init-scripts Available versions: 23^t ~24^t 25^t **9999^t Installed versions: 25^t(11:34:23 AM 04/01/2013) Homepage: http://www.gentoo.org Description: udev startup scripts for openrc Found 2 matches. mingdao@peter ~ $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x10ec:0x8168 (r8169) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="bc:ae:c5:6c:3c:97", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" 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. I've grown weary of the poor Linux desktop(s), so these are the only 5 computers left on the LAN running Gentoo. Two laptops and two PCs that were for desktop type computers only have been migrated to Windows 7. I really hate it, but at least now everything desktop environment wise just works, and does not either (a) get messed up by updates, or (b) require a lot of work to get it to work properly to start with, or keep it working. Cheers, Bruce -- Happy Penguin Computers >') 126 Fenco Drive ( \ Tupelo, MS 38801 ^^ supp...@happypenguincomputers.com 662-269-2706 662-205-6424 http://happypenguincomputers.com/ A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting