Alkis Georgopoulos b938c7ef37 configure_networking() wait for udev to populate available nics
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>
2011-07-30 12:57:19 +02:00
..
nfs
2010-06-18 11:43:37 +02:00