-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Network cards UEFI boot #136
Comments
Hi @ThomasToka, a customer of mine also ran into such a problem, there the problem shows up as follows:
I'm not sure about your specific situation, I'd need to know what's in your The workaround for the problem at my customer for now is usage of the |
Hello, these are the shown mac in bios for the devices.. eth0 aa:aa:aa:aa:aa:52 when i boot grml that comes out: our append string looks like this:
so we use ip=dhcp. we dont want to use ip= with a static ip config or something else cause all our installation images use dhcp and we generate during installation static configurations for the final install. for me it seems as the network devices script does not work anymore like in 2020.06. 2020.06 is that last that did it like it should be. it was so long under the radar cause we also have an own rescue system that mainly is used for such tasks. could you please point me the script that does the "network discovery" ? |
additionally: i tested live-netdev=eth1 if it then starts from this device.. yes it does. but as i say this is only a half backed solution cause some motherboards/kernels swap devices like this supermicro board here. |
The relevant component is https://github.com/grml/live-boot-grml/ - which is an "extension" of what's going on in the initramfs itself (which is driven by https://salsa.debian.org/kernel-team/initramfs-tools), and a custom version of upstream's https://salsa.debian.org/live-team/live-boot. Most relevant for you should be https://github.com/grml/live-boot-grml/blob/master/components/9990-select-eth-device.sh + https://github.com/grml/live-boot-grml/blob/master/components/9990-networking.sh. Furthermore, unless boot option |
We see more and more UEFI only Boards upcomming. Also with several onboard nics. This is a general long know problem with the swap of device names.. |
something like this would be nice ^^ |
@ThomasToka thanks for your suggestion, something like this sounds like a good idea! 👍 |
is this the correct way to pack the initrd.img?
cause somehow i get a kernel panic. |
|
i think you missunderstood me. i unpacked the initrd.img to modify the script and now want to pack the unpacked folder to use it.
update-initramfs is afaik for updating in a running system. |
Yeah, though you can run It basically does something like:
and then |
so cpio_owner_root is probably -R 0:0. but what is cpio_reproducible? Sorry for that many questions? :-( |
|
Thank you very much for the hints. It works. unpack:
i had to adjust my proposal cause we are in /bin/sh here so i did:
adding live-netdev=xx:xx:xx:xx:xx:52 to append then boots the desired interface. for me fixed and our 2021 works now. will patch 2022 now for us ;) |
@ThomasToka glad to hear, you're welcome! That sounds like an approach that we can also use for Grml, do you feel like you could provide a PR against https://github.com/grml/live-boot-grml/ or would you prefer me to take care of it (based on your patch with credits of course)? |
done. |
Hi,
we have servers with multiple network cards.
In Legacy mode we use IPAPPEND 2 to choose the right device that is chosen later for the dhcp request to download the squashfs.
In Uefi mode there is no such possibility.
Our problem is with Uefi.
It works with grml 2020.06, first the eth0 is tested, then eth1 is tested and as there is the dhcp selected as dhcp interface.
In 2021.07 and 2022.11 this stopped working. eth0 is tested, found as having link, but on this device is no dhcp. eth1 is not even tried and then we land in initramfs. eth1 is not tested at all.
This works with 2020.06 as mentioned.
Thank you.
Thomas
The text was updated successfully, but these errors were encountered: