[1/6] linux: Don't create bond0 when bonding is being loaded
Commit Message
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
config/rootfiles/common/aarch64/linux | 1 +
config/rootfiles/common/riscv64/linux | 1 +
config/rootfiles/common/x86_64/linux | 1 +
lfs/linux | 3 +++
4 files changed, 6 insertions(+)
@@ -573,6 +573,7 @@ boot/dtb-KVER
#boot/dtb-KVER/synaptics/berlin4ct-stb.dtb
boot/vmlinuz-KVER
#etc/cpufreq-bench.conf
+etc/modprobe.d/bonding.conf
etc/modprobe.d/ipv6.conf
#lib/modules
#lib/modules/KVER
@@ -13,6 +13,7 @@ boot/dtb-KVER
#boot/dtb-KVER/starfive/jh7110-starfive-visionfive-2-v1.3b.dtb
boot/vmlinuz-KVER
#etc/cpufreq-bench.conf
+etc/modprobe.d/bonding.conf
etc/modprobe.d/ipv6.conf
#lib/modules
#lib/modules/KVER
@@ -2,6 +2,7 @@ boot/System.map-KVER
boot/config-KVER
boot/vmlinuz-KVER
#etc/cpufreq-bench.conf
+etc/modprobe.d/bonding.conf
etc/modprobe.d/ipv6.conf
#lib/modules
#lib/modules/KVER
@@ -232,6 +232,9 @@ endif
# Disable ipv6 at runtime
echo "options ipv6 disable_ipv6=1" > /etc/modprobe.d/ipv6.conf
+ # Do not automatically create bond0 when bonding is being loaded
+ echo "options bonding max_bonds=0" > /etc/modprobe.d/bonding.conf
+
# build cpupower utility
cd $(DIR_APP)/tools/power/cpupower && make $(MAKETUNING)
cd $(DIR_APP)/tools/power/cpupower && make install