udev brings network connections up in the background
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifupdown (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ifupdown
udev brings network connections up when it sees the device appear,
using /etc/udev/
There is no way to stop it bringing them up, and it brings them up in
the background. This means that if you're using autofs with ldap
maps, and using dhcp on a network with Spanning Tree Protocols,
so there's a 30 second delay for the port to come up, and a delay for
dhcp to kick in, most of the init scripts will start before the network
comes up. In this case, autofs starts before the network is up, so it
can't read the ldap entries for automount, and you get no automounter.
The workarounds I'm using at the moment include nuking /etc/udev/
or adding a script to restart autofs in /etc/network/
A better change might be to change /etc/udev/
from
ACTION=="add", RUN+="/
file /var/run/
"
to
ACTION=="add", RUN+="/
file /var/run/
"
but I don't know how classes work in /etc/network/
The correct way to fix this will be to use upstart jobs for the daemons