mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-27 01:44:25 +00:00
Been seeing that since Karmic, and just reproduced it with Natty. In /usr/share/initramfs-tools/scripts/functions, function configure_networking() is called from the initramfs to setup a network connection for e.g. diskless booting. This function doesn't call `udevadm settle` or anything similar to wait until the NICs are made available by udev. So many times booting fails with messages like "ipconfig: no devices to configure" etc. Attaching a screenshot that displays the problem. configure_networking tried to call ipconfig before the NIC was available, so booting failed. After a couple of secs udev initialized the NIC. Adding a call to `wait_for_udev 10` inside the configure_networking() function solves the problem. Tested in 3 different PCs and 1 vbox VM, they all experienced the problem previously and they worked fine after applying the patch. LP: #682445 Reviewed-by: Michael Prokop <mika@debian.org> Signed-off-by: maximilian attems <max@stro.at>