View previous topic :: View next topic |
Author |
Message |
yzh n00b
Joined: 25 Feb 2011 Posts: 53
|
Posted: Tue Jun 18, 2013 6:38 pm Post subject: initramfs and udev predictable network interface names |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Tue Jun 18, 2013 7:46 pm Post subject: |
|
|
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 |
|
|
yzh n00b
Joined: 25 Feb 2011 Posts: 53
|
Posted: Wed Jun 19, 2013 7:35 am Post subject: |
|
|
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 |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10587 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jun 19, 2013 9:41 am Post subject: |
|
|
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 |
|
|
yzh n00b
Joined: 25 Feb 2011 Posts: 53
|
Posted: Wed Jun 19, 2013 10:11 am Post subject: |
|
|
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 |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Wed Jun 19, 2013 10:43 am Post subject: |
|
|
Are you planning on using this livecd on more than one hardware configuration? |
|
Back to top |
|
|
yzh n00b
Joined: 25 Feb 2011 Posts: 53
|
Posted: Wed Jun 19, 2013 10:53 am Post subject: |
|
|
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 |
|
|
yzh n00b
Joined: 25 Feb 2011 Posts: 53
|
Posted: Tue Jul 02, 2013 12:42 pm Post subject: |
|
|
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 |
|
|
|