Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
udev and the empty 80-net-name-slot.rules file
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Tue Feb 05, 2013 4:14 pm    Post subject: udev and the empty 80-net-name-slot.rules file Reply with quote

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
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Tue Feb 05, 2013 4:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
AgBr
Apprentice
Apprentice


Joined: 06 Nov 2010
Posts: 195

PostPosted: Tue Feb 05, 2013 4:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
mwoodiupui
n00b
n00b


Joined: 13 Oct 2004
Posts: 48
Location: Indianapolis, IN, USA

PostPosted: Mon Feb 25, 2013 2:23 pm    Post subject: Recent udev-197 patch release *replaced* 80-net-name-slot.ru Reply with quote

[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
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Mon Feb 25, 2013 7:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Mon Feb 25, 2013 11:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
mwoodiupui
n00b
n00b


Joined: 13 Oct 2004
Posts: 48
Location: Indianapolis, IN, USA

PostPosted: Mon Mar 04, 2013 2:53 pm    Post subject: Advice has changed. Deleting 80-blip-blop.rules doesn't las Reply with quote

*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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum