I was going to merge your patch but just remembered I actually fixed
this in a different way :)

Here's roughly what happens when eth0 appears (bond member):
 - upstart receives net-device-added INTERFACE=eth0
 - network-interface is triggered
 - ifup --allow auto eth0 is called
 - pre-up script for eth0 notices bond0 doesn't exist, creates it and wait for 
it to be ready
 - upstart receives net-device-added INTERFACE=bond0
 - network-interface is triggered
 - ifup --allow auto bond0 is called
 - pre-up script for bond0 initialises the bond and joins eth0 to it
 - net-device-up is emitted for IFACE=bond0
 - the pre-up script for eth0 continues
 - net-device-up is emitted for IFACE=eth0

So basically net-device-up IFACE=eth0 now will only get emitted once
bond0 is online, configured and has eth0 as a slave.

** Changed in: ifupdown (Ubuntu)
       Status: New => Fix Released

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

Title:
  net-device-up emitted for bonding members

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to