Package: ifenslave-2.6
Version: 1.1.0-20

Hi,

the current ifenslave-2.6 (1.1.0-20) in Wheezy doesn't set the primary
slave anymore. Squeeze is not affected as far as I know.
In /etc/network/if-pre-up.d/ifenslave around line 151 it does:

for slave in $IF_BOND_PRIMARY ; do
    if grep -sq "\\<$slave\\>"
"/sys/class/net/$BOND_MASTER/bonding/slaves" ; then
        sysfs primary "$slave"
        break
    fi
done

The problem here is that the grep won't get a match. This is because the
slaves file is empty at the time of the call.
On line ~206 It does "setup_master" first, so before "enslave_slaves".
So the slaves file will be filled in the "enslave_slaves" function and
thus it will always be empty in "setup_master".

It may be enough to just move the "set primary slave" block into the
"enslave_slaves" function.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to