-
Notifications
You must be signed in to change notification settings - Fork 399
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
network-legacy without systemd local live ISO boot #2114
Comments
I am able to reproduce a failure - https://github.com/LaszloGombos/dracut/actions/runs/3664855075/jobs/6195536000 Scratch this, this is just a dup of #1901 |
CC @Mrfai |
Here are my logs. The problem is IMO that there's no /lib/dracut/hooks/initqueue/ifup-eth0.sh but only the ifup-lo.sh BOOT_IMAGE=/boot/vmlinuz FAI_FLAGS=menu,verbose,createvt FAI_ACTION=install FAI_CONFIG_SRC=file:///var/lib/fai/config rd.live.image root=live:CDLABEL=FAI_CD rd.neednet ip=dhcp rd.debug |
This only occurs in the dmesg output (I'm not using systemd) during boot when the network is not configured properly: |
@Mrfai Curious, if you add "net.ifnames=0" to kernel command line does it work (without additional patches) ? Also can you list the full list of dracut modules included ? Are you sure nfs dracut module is not included ? |
No, it does not help. The network interface is now called eth0 but still does not get an IP address. |
I've debugged a little bit deeper. This happens when no IP address is assigned and the interface is renamed to ens3. In 99base/init.sh in the main loop I can see that following files are created in hooks/initqueue |
Link to debian patch - https://salsa.debian.org/debian/dracut/-/blob/master/debian/patches/udevsettle |
Perhaps share "dracut --debug -v" output ?
Since this is an unusual need (bring up networking but load the root filesystem from local fs), can you please share a bit more about what you're trying to achieve ? What do you hope to achieve by including the nfs dracut module but not using root=/dev/nfs ? |
the nfs module is included because I'm using the same initrd (and the root file system) for both booting from network (via root=/dev/nfs) and from an ISO. |
@Mrfai Thanks, this use case make sense to me. When booting from ISO is the ISO on the network or is it on local storage attached the host that you are booting from ? Why is it important that bring up network for booting from ISO ? |
@Mrfai There is not enough information on this bug to reproduce. If we can not reproduce it, than it would be hard to make progress on this issue. |
Describe the bug
I have a problem that booting an ISO in a VM using qemu/kvm, the network is not configured properly. If I add a sleep 1 or udevadm settle before the rd.break=initqueue in 99base/init.sh everything works and eth0 gets an IP address. Without it, I the interface is named ens3 and it does not get an IP. I guess it's a corner case because on real hardware (on two notebooks) I had no problems. But looking at the init.sh code I seems reasonable to add udevadm settle (and not udevsettle) before the main loop.
I use network-legacy and no systemd dracut modules on my iso. But systemd-udevd is available in the initrd.
Distribution used
debian
Dracut version
57
Init system
systemd
The text was updated successfully, but these errors were encountered: