Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

...stop udev from renaming eth0 on a live cd

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
bastibasti
Guru
Guru
Posts: 590
Joined: Mon Nov 27, 2006 6:34 am

...stop udev from renaming eth0 on a live cd

  • Quote

Post by bastibasti » Fri Mar 08, 2013 2:22 pm

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.
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8738
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Fri Mar 08, 2013 2:25 pm

Hello,

If you are unhappy with Gentoo LiveCD, use SystemRescueCD, based on Gentoo, and which is better IMHO.
Kind regards,
Xavier Miller
Top
bastibasti
Guru
Guru
Posts: 590
Joined: Mon Nov 27, 2006 6:34 am

  • Quote

Post by bastibasti » Fri Mar 08, 2013 3:22 pm

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?
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Fri Mar 08, 2013 6:08 pm

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.
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8738
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Sun Mar 10, 2013 8:09 pm

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
Top
SamuliSuominen
Retired Dev
Retired Dev
Posts: 2133
Joined: Fri Sep 30, 2005 8:38 am
Location: Finland

  • Quote

Post by SamuliSuominen » Sun Mar 10, 2013 8:17 pm

The network interface naming is documented here:

http://www.freedesktop.org/wiki/Softwar ... rfaceNames

In the "I don't like this, how do I disable this?" section.
Top
bastibasti
Guru
Guru
Posts: 590
Joined: Mon Nov 27, 2006 6:34 am

  • Quote

Post by bastibasti » Tue Mar 12, 2013 10:51 am

Thanks for the hints. I switched to eudev on all my machines :wink:
Top
Post Reply

7 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic