Comment 30 for bug 495394

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: autostart almost always fails on boot time host

@Mika,

thanks for posting your patches along the way. Regarding your third version (in comment #24), is it just the net-device-up for the bridge which you're not seeing? Have you tried leaving bridge-network-interface.conf enabled, and, at the bottom of the loop in its pre-start script, doing

   ifup $i

(to force /etc/network/if-up.d/upstart to do the initctl emit for us). So the script would look like:

pre-start script
        . /lib/bridge-utils/bridge-utils.sh

        mkdir -p /var/run/network
        for i in $(ifquery --list --allow auto); do
                ports=$(ifquery $i | sed -n -e's/^bridge_ports: //p')
                for port in $(bridge_parse_ports $ports); do
                        case $port in
                                $INTERFACE|$INTERFACE.*)
                                        ifup --allow auto $i
                                        brctl addif $i $port && ifconfig $port 0.0.0.0 up
                                        break
                                        ;;
                        esac
                done
                ifup $i
        done
end script

Clint, does that look reasonable to you?