Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] systemd-udevd using stupid names
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lysergicacid
Guru
Guru


Joined: 25 Nov 2003
Posts: 352
Location: The Universe,Virgo Super Cluster,Milky Way,Earth

PostPosted: Thu Jan 31, 2013 3:43 pm    Post subject: [SOLVED] systemd-udevd using stupid names Reply with quote

Hi, have recently updated & since the update, every diff wifi dongle i plug in gets silly names like this :

Code:
[ 3023.871060] usb 2-2: new high-speed USB device number 4 using ehci-pci
[ 3023.987262] rtl8192cu: Chip version 0x10
[ 3024.071770] rtl8192cu: MAC address: 80:1f:02:1b:dd:e8
[ 3024.071778] rtl8192cu: Board Type 0
[ 3024.072027] rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 3024.072078] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw.bin
[ 3024.072754] ieee80211 phy1: Selected rate control algorithm 'rtl_rc'
[ 3024.074624] rtlwifi: wireless switch is on
[ 3024.080285] systemd-udevd[10581]: renamed network interface wlan1 to wlp0s29f7u2


this system has been installed since 2011 & ive never had this problem before, yes it used to rename wlan1 to wlan5 but not silly names like this is now doing, ive remedied it with 2 dongles with udev rules but why is udev now naming them in such silly way ? any idea's please ?
_________________
[img]http://valid.canardpc.com/cache/banner/2040927.png[/img]
Desktop:
[img]http://valid.canardpc.com/cache/banner/2703952.png[/img]


Last edited by lysergicacid on Thu Apr 18, 2013 5:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
jrussia
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2012
Posts: 89
Location: Chicago

PostPosted: Thu Jan 31, 2013 3:50 pm    Post subject: Reply with quote

There is some explanation and workarounds (if you want them) here: http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
Back to top
View user's profile Send private message
consus
n00b
n00b


Joined: 27 Aug 2012
Posts: 38

PostPosted: Sun Feb 03, 2013 8:11 pm    Post subject: Reply with quote

The funny thing -- people are still going to use this crap :)
Back to top
View user's profile Send private message
SamuliSuominen
Retired Dev
Retired Dev


Joined: 30 Sep 2005
Posts: 2133
Location: Finland

PostPosted: Sun Feb 03, 2013 8:16 pm    Post subject: Reply with quote

Yet another duplicate thread? Please use one of the existing ones.
https://forums.gentoo.org/viewtopic-t-949482-highlight-.html for example
Back to top
View user's profile Send private message
lysergicacid
Guru
Guru


Joined: 25 Nov 2003
Posts: 352
Location: The Universe,Virgo Super Cluster,Milky Way,Earth

PostPosted: Mon Feb 04, 2013 11:02 pm    Post subject: as per normal the search engine here doesn't work right Reply with quote

im sorry if this is a duplicate thread, but it might help if the search engine here worked properly, anyway, this is clearly a buggy portage update, since updating my system and adding rules to enforce proper device naming conventions on my wifi devices
Code:
# usb yagi
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:e0:4c:05:e7:3a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan1"

# alfa 2 watt
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:c0:ca:4a:a5:27", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan2"

my usb hdd no longer auto mounts and upon rebooting my system grub automatically boots straight to linux if i plug a usb keyboard in, this has never happened before.
_________________
[img]http://valid.canardpc.com/cache/banner/2040927.png[/img]
Desktop:
[img]http://valid.canardpc.com/cache/banner/2703952.png[/img]
Back to top
View user's profile Send private message
derk
Guru
Guru


Joined: 10 Mar 2003
Posts: 347
Location: St Thomas Ontario

PostPosted: Mon Feb 04, 2013 11:37 pm    Post subject: Reply with quote

sorry not buggy .. this is the new networking naming convention .. If you have read the elogs you would have seen the warnings .. see thread mentioned earlier
Back to top
View user's profile Send private message
lysergicacid
Guru
Guru


Joined: 25 Nov 2003
Posts: 352
Location: The Universe,Virgo Super Cluster,Milky Way,Earth

PostPosted: Tue Feb 05, 2013 12:14 am    Post subject: Reply with quote

derk wrote:
sorry not buggy .. this is the new networking naming convention .. If you have read the elogs you would have seen the warnings .. see thread mentioned earlier
sorry but that doesnt explain the issue with the usb hdd or usb keyboard
_________________
[img]http://valid.canardpc.com/cache/banner/2040927.png[/img]
Desktop:
[img]http://valid.canardpc.com/cache/banner/2703952.png[/img]
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Tue Feb 05, 2013 12:16 am    Post subject: Re: as per normal the search engine here doesn't work right Reply with quote

lysergicacid wrote:
NAME="wlan1"

Stop using the same naming convention as before. That naming convention is broken, because the 1, 2, etc. order cannot be guaranteed.

So use e.g. "home", "inet". Anything but wlan followed by a digit.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Tue Feb 05, 2013 12:48 am    Post subject: Re: systemd-udevd using stupid names Reply with quote

lysergicacid wrote:
Hi, have recently updated & since the update, every diff wifi dongle i plug in gets silly names like this :
Code:
[ 3024.080285] systemd-udevd[10581]: renamed network interface wlan1 to wlp0s29f7u2

this system has been installed since 2011 & ive never had this problem before, yes it used to rename wlan1 to wlan5 but not silly names like this is now doing, ive remedied it with 2 dongles with udev rules but why is udev now naming them in such silly way ? any idea's please ?
There should have been an empty file
/etc/udev/rules.d/80-net-name-slot.rules
to overshadow the new (upstream) netname udev rules file. if there is not (because Gentoo maintainers haven't thought finding such as your special setup), just try:

ln -s /etc/udev/rules.d/80-net-name-slot.rules /dev/null
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Feb 05, 2013 1:31 am    Post subject: Reply with quote

Huh? That's bizarre. Wouldn't
Code:
rm /etc/udev/rules.d/80-net-name-slot.rules
touch /etc/udev/rules.d/80-net-name-slot.rules
be simpler and also less abstruse?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2678

PostPosted: Tue Feb 05, 2013 1:38 am    Post subject: Reply with quote

John R. Graham wrote:
Huh? That's bizarre. Wouldn't
Code:
rm /etc/udev/rules.d/80-net-name-slot.rules
touch /etc/udev/rules.d/80-net-name-slot.rules
be simpler and also less abstruse?

- John


But its not The Systemd Way.
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Feb 05, 2013 2:29 am    Post subject: Reply with quote

:wink:
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1480

PostPosted: Tue Feb 05, 2013 8:13 am    Post subject: Reply with quote

John, we had some other guys in the other thread not knowing the meaning of '#', who thought an outcommented "empty" file should do some work. And got angry that it dit not. Therefore I came to the conclusion:

pointing to /dev/null is not misunderstandable, or?

The other misunderstanding then was: you could save your important homework onto this file by cat>>
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Tue Feb 05, 2013 7:23 pm    Post subject: Reply with quote

udev might eat your homework? :wink: Well, why not a hard link, then? Wouldn't that be more efficient? In addition, you've got your arguments backwards. You might want to correct your suggestion so that it actually works.

Seriously, the KISS principle should apply here. If what you need is an empty file, then put an empty file!

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Mon Feb 11, 2013 6:47 am    Post subject: Reply with quote

You guys are going to give ssuominen a stroke, or cause him to go postal. :P

What's wrong with the 80 dummy file provided by the ebuild? Nothing; it even contains a nice, clear explanation.

Between that, the news item, the eewarn text provided by the emerge, and the references therein, I don't see how people are getting confused. I can imagine them not liking the change, but nobody has any right to rant after not using their head and screwing up their own system.
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
lysergicacid
Guru
Guru


Joined: 25 Nov 2003
Posts: 352
Location: The Universe,Virgo Super Cluster,Milky Way,Earth

PostPosted: Thu Apr 18, 2013 5:25 pm    Post subject: [solved] Reply with quote

sorry just a post to finish the post, issue resolved, thanks for the info, i have to admit ive got doc and info and man masked so they get removed as soon as something gets installed, at the time i dont rem seing a eselect news item for this at the time.
_________________
[img]http://valid.canardpc.com/cache/banner/2040927.png[/img]
Desktop:
[img]http://valid.canardpc.com/cache/banner/2703952.png[/img]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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