From: Michael Tremer Date: Tue, 29 Jul 2025 14:42:15 +0000 (+0000) Subject: linux: Don't create bond0 when bonding is being loaded X-Git-Tag: v2.29-core197~25^2~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5c903c529978dff6c100819dff785ffc9b507a0b;p=ipfire-2.x.git linux: Don't create bond0 when bonding is being loaded Signed-off-by: Michael Tremer --- diff --git a/config/rootfiles/common/aarch64/linux b/config/rootfiles/common/aarch64/linux index 9b848d211..7d3124685 100644 --- a/config/rootfiles/common/aarch64/linux +++ b/config/rootfiles/common/aarch64/linux @@ -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 diff --git a/config/rootfiles/common/riscv64/linux b/config/rootfiles/common/riscv64/linux index bf0deb05f..4cb6a0dda 100644 --- a/config/rootfiles/common/riscv64/linux +++ b/config/rootfiles/common/riscv64/linux @@ -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 diff --git a/config/rootfiles/common/x86_64/linux b/config/rootfiles/common/x86_64/linux index c58d0a4bb..66484034d 100644 --- a/config/rootfiles/common/x86_64/linux +++ b/config/rootfiles/common/x86_64/linux @@ -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 diff --git a/lfs/linux b/lfs/linux index 52f8cb427..118a0fcf2 100644 --- a/lfs/linux +++ b/lfs/linux @@ -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