ifenslave is an old tool, and could be dropped,
we can use the /sys interface.
Cc: Harald Hoyer <harald@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
for slave in $bondslaves ; do
ip link set $slave down
- ifenslave $bondname $slave
+ echo "+$slave" > /sys/class/net/$bondname/bonding/slaves
ip link set $slave up
wait_for_if_up $slave
done
install() {
local _arch _i _dir
dracut_install ip arping tr dhclient
- dracut_install -o brctl ifenslave
+ dracut_install -o brctl
inst "$moddir/ifup.sh" "/sbin/ifup"
inst "$moddir/netroot.sh" "/sbin/netroot"
inst "$moddir/dhclient-script.sh" "/sbin/dhclient-script"
# Check if bond parameter is valid
if getarg bond= >/dev/null ; then
- command -v ifenslave >/dev/null 2>&1 || die "No 'ifenslave' installed"
+ :
fi
# We translate list of slaves to space-separated here to mwke it easier to loop over them in ifup