diff options
author | Alkis Georgopoulos <alkis.georgopoulos@gmail.com> | 2010-11-28 20:55:40 +0000 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-07-30 12:57:19 +0200 |
commit | b938c7ef3794932c7a69af5427858a5d54a2b3c1 (patch) | |
tree | f58f98425bf5a7e3981644c6c4d9da2166c56cc3 /scripts/functions | |
parent | b1530ee75197cd9b235ebb7d7fef7994c872caff (diff) |
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>
Diffstat (limited to 'scripts/functions')
-rw-r--r-- | scripts/functions | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions index 0183064..765802f 100644 --- a/scripts/functions +++ b/scripts/functions @@ -362,6 +362,8 @@ configure_networking() # networking already configured thus bail out [ -n "${DEVICE}" ] && [ -e /tmp/net-"${DEVICE}".conf ] && return 0 + wait_for_udev 10 + # support ip options see linux sources # Documentation/filesystems/nfs/nfsroot.txt # Documentation/frv/booting.txt |