ML mail <mlnos...@yahoo.com> wrote: > I would like to preseed a Debian jessie installation over a bond0 > interface with LACP but my problem is that the installer by itself > does not support bonding out of the box. My idea and workaround would > be to use the early_command preseed parameter to first install the > ifenslave-2.6 package, load the bonding module, overwrite > /etc/network/interfaces with my config and then start the network.
ifenslave is nothing more than a shell script, putting some values into /sys/class/net/bond0/bonding/slaves, no need to install the whole package. That script is 120 lines long and 90% are error checking, help text and licensing stuff. Just load the bonding module and do something like for slave in eth0 eth1 ip link set $slave down echo "+$slave" > /sys/class/net/bond0/bonding/slaves done ip link set bond0 up (Effectivley lines 92, 107, 108 and 118 of ifenslave.) Grüße, Sven. -- Sigmentation fault. Core dumped.