]> git.ipfire.org Git - thirdparty/dracut.git/commit
bonding: use hwaddr of the slave rather than the master
authorAlex Harpin <development@landsofshadow.co.uk>
Tue, 6 May 2014 22:41:17 +0000 (23:41 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 29 Jul 2014 10:00:33 +0000 (12:00 +0200)
commit5f5c07eca2bd44967e9043fefca3dae91db010f9
treebca994e6d8a9e8a4f560f89410225659a661fab0
parent9c45cb9c117505191f2678e25edac481ff6da9f2
bonding: use hwaddr of the slave rather than the master

When a bonded interface is brought up, any slaves included in the bond
have their hardware address set to that of the bond master.  Although
this allows an interface to be brought up on start up, when the
configuration file is imported into the booted system it prevents
the bonded interface being successfully restarted.

The fix involves obtaining the hardware address of the slaves before
they are added to the bond and then using this value in the
configuration file.

(cherry picked from commit 83c9ff7dbb465bedb10119bb2883d34266922180)
modules.d/40network/ifup.sh
modules.d/45ifcfg/write-ifcfg.sh