[kernel-bugs] [Bug 1173402] New: Kernel delays boot by 12s if ip= option given
http://bugzilla.opensuse.org/show_bug.cgi?id=1173402 Bug ID: 1173402 Summary: Kernel delays boot by 12s if ip= option given Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-bugs@opensuse.org Reporter: fvogt@suse.com QA Contact: qa-bugs@suse.de CC: dracut-maintainers@suse.de, iforster@suse.com Found By: --- Blocker: --- For networking in the initrd, the "ip=dhcp" (or similiar) option can be set in the kernel cmdline. This is parsed by dracut and used to configure wicked. However, this option is also parsed by the kernel in its ip autoconfig code, which then ends up trying to bring up the network itself. This bringup includes a 12s delay to wait for interfaces to appear: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/net/... At this point the initrd isn't even mounted, so there are no kernel modules available and no interfaces appear. @kernel maintainers: Is it maybe possible to not do autoconfig in this circumstance? It might be possible to check whether there are any network drivers at all (the default kernel seems to have those as modules only) or whether it's booting an initrd. Though in the latter case I guess it's possible that some initrd out there relies on the kernel's successful autoconfig? @dracut maintainers: It seems like "rd.neednet=1" is enough to get dracut to acquire an address over DHCP, so a workaround is to just drop "ip=dhcp". I'd like to have confirmation that this is intended behaviour and won't break without notice in the future. This doesn't help for cases without DHCP though. If it's not possible to avoid the "ip=foo" induced kernel delay, it might be a good idea to provide "rd.ip=foo" or similar as alias, which is ignored by the kernel. -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1173402
http://bugzilla.opensuse.org/show_bug.cgi?id=1173402#c1
Fabian Vogt
@dracut maintainers: ...
Adding needinfo -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1173402
http://bugzilla.opensuse.org/show_bug.cgi?id=1173402#c27
--- Comment #27 from Thomas Blume
they worked well in my test setup.
Working for me as expected as well.
Thanks! Patch was merged upstream and will be added to one of the next dracut updates for Tumbleweed. -- You are receiving this mail because: You are the assignee for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1173402
http://bugzilla.opensuse.org/show_bug.cgi?id=1173402#c28
Fabian Vogt
(In reply to Fabian Vogt from comment #26)
they worked well in my test setup.
Working for me as expected as well.
Thanks! Patch was merged upstream and will be added to one of the next dracut updates for Tumbleweed.
Great, that leaves the kernel side (see the initial description). -- You are receiving this mail because: You are the assignee for the bug.
participants (1)
-
bugzilla_noreply@suse.com