[Bug 885596] Re: "Waiting up to 60 more seconds for network configuration" at boot
Flapane
interflap at gmail.com
Sun Nov 6 18:59:20 UTC 2011
To be honest I don't remember any manual modification sooner or later in 2/2010, but of course I can't be sure.
I don't remember any networking issue, so there shouldn't be any reason for modifying this file.
Is diff telling us something? I see a "-n" near "initctl emit".
Thanks
--- /etc/network/if-up.d/upstart 2010-02-20 06:37:23.000000000 +0100
+++ /etc/network/if-up.d/upstart.dpkg-dist 2011-09-14 20:24:57.000000000 +0200
@@ -1,9 +1,43 @@
#!/bin/sh
+MARK_DEV_PREFIX="/run/network/ifup."
+MARK_STATIC_NETWORK_EMITTED="/run/network/static-network-up-emitted"
set -e
-initctl emit net-device-up \
- "IFACE=$IFACE" \
- "LOGICAL=$LOGICAL" \
- "ADDRFAM=$ADDRFAM" \
- "METHOD=$METHOD"
+# lo emission handled by /etc/init/network-interface.conf
+if [ "$IFACE" != lo ]; then
+ initctl emit -n net-device-up \
+ "IFACE=$IFACE" \
+ "LOGICAL=$LOGICAL" \
+ "ADDRFAM=$ADDRFAM" \
+ "METHOD=$METHOD"
+fi
+
+get_auto_interfaces() {
+ # write to stdout a list of interfaces configured as 'auto' in interfaces(5)
+ local found=""
+ # stderr redirected as it outputs things like:
+ # Ignoring unknown interface eth0=eth0.
+ found=$(ifquery --list --allow auto 2>/dev/null) || return
+ set -- ${found}
+ echo "$@"
+}
+
+all_interfaces_up() {
+ # return true if all interfaces listed in /etc/network/interfaces as 'auto'
+ # are up. if no interfaces are found there, then "all [given] were up"
+ local prefix="$1" iface=""
+ for iface in $(get_auto_interfaces); do
+ # if cur interface does is not up, then all have not been brought up
+ [ -f "${prefix}${iface}" ] || return 1
+ done
+ return 0
+}
+
+# touch our own "marker" indicating that this interface has been brought up.
+: > "${MARK_DEV_PREFIX}$IFACE"
+
+if all_interfaces_up "${MARK_DEV_PREFIX}" &&
+ mkdir "${MARK_STATIC_NETWORK_EMITTED}" 2>/dev/null; then
+ initctl emit --no-wait static-network-up
+fi
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifupdown in Ubuntu.
https://bugs.launchpad.net/bugs/885596
Title:
"Waiting up to 60 more seconds for network configuration" at boot
Status in “ifupdown” package in Ubuntu:
Incomplete
Bug description:
Ubuntu 11.10 32bit on Virtualbox and Win7 x64.
I get a "Waiting up to 60 seconds for network configuration" at boot, which causes the boot to be delayed by some minutes.
It's not a duplicate of bug #881079
------
/etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
--------
ifconfig eth0:
eth0 Link encap:Ethernet HWaddr 08:00:27:8c:2f:18
indirizzo inet:10.0.2.15 Bcast:10.0.2.255 Maschera:255.255.255.0
indirizzo inet6: fe80::a00:27ff:fe8c:2f18/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisioni:0 txqueuelen:1000
Byte RX:2158 (2.1 KB) Byte TX:10613 (10.6 KB)
-----
Here's an extract of what Steve Langasek found to be "weird" in the
kernel log (verbose mode) attached here:
Nov 2 16:06:31 virtualbox kernel: [ 25.934277] init: network-interface (eth0) pre-start process (350) exited normally
Nov 2 16:06:31 virtualbox kernel: [ 25.934627] init: network-interface (eth0) state changed from pre-start to spawned
Nov 2 16:06:31 virtualbox kernel: [ 25.934884] init: network-interface (eth0) state changed from spawned to post-start
Nov 2 16:06:31 virtualbox kernel: [ 25.935013] init: network-interface (eth0) state changed from post-start to running
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifupdown/+bug/885596/+subscriptions
More information about the foundations-bugs
mailing list