View previous topic :: View next topic |
Author |
Message |
bastibasti Guru
Joined: 27 Nov 2006 Posts: 581
|
Posted: Fri Mar 08, 2013 2:22 pm Post subject: ...stop udev from renaming eth0 on a live cd |
|
|
Hi I have built a skimmed down version of gentoo. uncompressed root is about 50mb+kernel so compressed+kernel is about 20mb
however i experience that udev is renaming my eth0 to enp0s3 - whats that all about? I found out that this is a new *feature* of udev/systemd but can you switch it off?
Ok for a normal machine i could set up a mac adress based rule, but on a live cd?? and why is it s3 and not s0? my qemu only has one nic that it emulates. now iam getting confused. i thought device names ethx are given by the kernel. up to now i never had problems with that. each reboot would give me same eth numbers for my nic. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Fri Mar 08, 2013 2:25 pm Post subject: |
|
|
Hello,
If you are unhappy with Gentoo LiveCD, use SystemRescueCD, based on Gentoo, and which is better IMHO. _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
bastibasti Guru
Joined: 27 Nov 2006 Posts: 581
|
Posted: Fri Mar 08, 2013 3:22 pm Post subject: |
|
|
I dont use any of these. Its a custom setup.
After the system is up and running I want to implement some additional scripts...
The initial question was if its possible to stop udev from renaming the eth interfaces, or not? |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Fri Mar 08, 2013 6:08 pm Post subject: |
|
|
There is supposedly some way to fix it by editing config files, but it'd be easier to just use eudev instead, which keeps the sane behaviour. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8708 Location: ~Brussels - Belgique
|
Posted: Sun Mar 10, 2013 8:09 pm Post subject: |
|
|
You need to create an empty /etc/udev/rules.d/80-net-name-slot.rules
and the old naming rule will be applied _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
SamuliSuominen Retired Dev
Joined: 30 Sep 2005 Posts: 2133 Location: Finland
|
|
Back to top |
|
|
bastibasti Guru
Joined: 27 Nov 2006 Posts: 581
|
Posted: Tue Mar 12, 2013 10:51 am Post subject: |
|
|
Thanks for the hints. I switched to eudev on all my machines |
|
Back to top |
|
|
|