Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
initramfs and udev predictable network interface names
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
yzh
n00b
n00b


Joined: 25 Feb 2011
Posts: 53

PostPosted: Tue Jun 18, 2013 6:38 pm    Post subject: initramfs and udev predictable network interface names Reply with quote

I built a custom livecd with catalyst and the initramfs does not seem to use the new predictable network interface names when acquiring an ip in the initramfs environment. (PXE boot).

It will boot and userland will have eth0 instead of the predictable enp2s0.

Any idea on how to use the predictable network names in initramfs?
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 Jun 18, 2013 7:46 pm    Post subject: Reply with quote

Who's initramfs are you using? I believe that, for instance, genkernel's initramfs does not use udev, but rather mdev instead, which follows the old scheme of just exposing the kernel namespace names.

- 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
yzh
n00b
n00b


Joined: 25 Feb 2011
Posts: 53

PostPosted: Wed Jun 19, 2013 7:35 am    Post subject: Reply with quote

Yes, i'm using catalyst + genkernel.

Ok that's too bad.. any ideas on how to enable this, or would I have better luck by switching to dracut instead?
Are there any future plans to have the new udev integrated in the initramfs since Gentoo basesystem itself uses new udev as well? (http://wiki.gentoo.org/wiki/Udev/upgrade)
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: Wed Jun 19, 2013 9:41 am    Post subject: Reply with quote

You'd have to ask the genkernel developers, but I doubt it. The general philosophy being pursued is that anything that can be done outside the initramfs should be done outside the initramfs. Normally, this includes networking. What's your reason for moving network bring up into the initramfs?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.


Last edited by John R. Graham on Wed Jun 19, 2013 11:40 am; edited 1 time in total
Back to top
View user's profile Send private message
yzh
n00b
n00b


Joined: 25 Feb 2011
Posts: 53

PostPosted: Wed Jun 19, 2013 10:11 am    Post subject: Reply with quote

John R. Graham wrote:
You'd have to ask the genkernel developers, but I doubt it. The general philosophy being pursued is that anything that can be done outside the initramfs should be done outside the initramfs. Normally, this includes networking. What's your reason for moving network bring up into the initramfs?

- John


The main reason is for PXE booting which requires network and NFS mounting within the initramfs.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Jun 19, 2013 10:43 am    Post subject: Reply with quote

Are you planning on using this livecd on more than one hardware configuration?
Back to top
View user's profile Send private message
yzh
n00b
n00b


Joined: 25 Feb 2011
Posts: 53

PostPosted: Wed Jun 19, 2013 10:53 am    Post subject: Reply with quote

Ant P. wrote:
Are you planning on using this livecd on more than one hardware configuration?

Mainly for one hardware configuration and ofcourse also supporting future model of the hardware. But in some cases also new hardware configuration.
Back to top
View user's profile Send private message
yzh
n00b
n00b


Joined: 25 Feb 2011
Posts: 53

PostPosted: Tue Jul 02, 2013 12:42 pm    Post subject: Reply with quote

I did not solve the problem, but used the following workaround:

- lookup oldname interfaces using "udevadm test-builtin net_id "/sys/class/net/<iface>" to the predictable name.
- use this lookup method in my installer scripts on the livecd.
- After reboot it is not necessary anymore as I only use the PXE boot during the installation.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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