@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?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/495394

Title:
  autostart almost always fails on boot time host

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/495394/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to