View previous topic :: View next topic |
Author |
Message |
AgBr Apprentice
Joined: 06 Nov 2010 Posts: 195
|
Posted: Tue Feb 05, 2013 4:14 pm Post subject: udev and the empty 80-net-name-slot.rules file |
|
|
Hi,
is the empty 80-net-name-slot.rules file in /etc/udev/rules.d meant to be only a transitory solution to keep the old naming scheme for devices or is it to stay?
If not, is there anywhere a comprehensive explanation on how to do the transition to the new scheme, namely the requirements for the kernel configuration, the persistent net rules and if necessary the fstab?
I have managed to rework my kernel appropriately (activate DEVTMPFS) to work with udev) but the explanations I found for doing the rest of the transition is by now beyond my understanding.
Thank you very much for your advices
Last edited by AgBr on Tue Feb 05, 2013 4:31 pm; edited 1 time in total |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Tue Feb 05, 2013 4:30 pm Post subject: |
|
|
AgBr wrote: | is the empty 80-net-name-slot.rules
file in /etc/udev/rules.d meant to be only a transitory solution
to keep the old naming scheme for devices or is it to stay? |
love it
mean it
as long
as you will
as admin of
your own machine
nearly all in /etc
if you like the old ethNUM and wlanNUM names of your network devices.
This file overshadows the new name rules in /lib/udev/rules.d !
Last edited by ulenrich on Tue Feb 05, 2013 4:41 pm; edited 2 times in total |
|
Back to top |
|
|
AgBr Apprentice
Joined: 06 Nov 2010 Posts: 195
|
Posted: Tue Feb 05, 2013 4:33 pm Post subject: |
|
|
ulenrich wrote: | love it
mean it
as long
as you will
as admin of
your own machine
nearly all in /etc
if you like the old ethNUM and wlanNUM names you network devices.
This file overshadows the new name rules in /lib/udev/rules.d ! |
Thanks for your comforting reply. |
|
Back to top |
|
|
mwoodiupui n00b
Joined: 13 Oct 2004 Posts: 48 Location: Indianapolis, IN, USA
|
Posted: Mon Feb 25, 2013 2:23 pm Post subject: Recent udev-197 patch release *replaced* 80-net-name-slot.ru |
|
|
[bloody subject length limit]
Now that I've drunk the "predictable" device names kool-aid, how do I keep the new names in place? It seems that a recent patch release put back the 80-net-name-slot.rules file that I had carefully renamed away. I came in this morning and found one of my servers incommunicado, had to boot a rescue CD (console problems, another story) to get control of it and hunt down the problem. What should we do to prevent this? |
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Mon Feb 25, 2013 7:34 pm Post subject: |
|
|
I wonder if write-protecting a symlink to /lib/udev/rules.d/80-net-name-slot.rules would suffice, mwoodiupui?
Code: | ln -sf /lib/udev/rules.d/80-net-name-slot.rules /etc/udev/rules.d/80-net-name-slot.rules
chattr +i /etc/udev/rules.d/80-net-name-slot.rules |
_________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1480
|
Posted: Mon Feb 25, 2013 11:51 pm Post subject: |
|
|
Obviously it would have been far easier for users to have an additional USE flag such as
oldnames
at hand...
What about, if udev ebuild makes wrong assumptions:
ln -sf /lib/udev/rules.d/80-net-name-slot.rules /etc/udev/rules.d/81-net-name-slot.rules
if new names are wished but the udev ebuild doesn't honor ...
(the udev ebuild doesn't know about a filename 81-net-name-slot.rules ) |
|
Back to top |
|
|
mwoodiupui n00b
Joined: 13 Oct 2004 Posts: 48 Location: Indianapolis, IN, USA
|
Posted: Mon Mar 04, 2013 2:53 pm Post subject: Advice has changed. Deleting 80-blip-blop.rules doesn't las |
|
|
*After* I had upgraded udev again, seen the 80-net-name-slot.rules file replaced again, deleted it again, I noticed that the new one was longer. I found a fresh copy elsewhere. It now contains advice to replace it from /lib/udev/rules.d/80-net-name-slot.rules, if you want to enable the "predictable" names. I have done that. We shall see, when this server reboots. |
|
Back to top |
|
|
|