From bf50599f812b72f1312a47d8a4bc8cd158ce4a80 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Tue, 26 Nov 2024 11:27:54 +0100 Subject: [PATCH 1/2] fix(35network-manager): install nftables kernel modules needed NetworkManager requires nf_tables, nfnetlink and nft_fwd_netdev kernel modules to operate balance-slb bonding mode. Fixes a6264d1726d9 ("fix(35network-manager): install nft binary during module installation") (cherry picked from commit 037da383dd8d9d9d699f1430d6afc790b28b18f8) Resolves: RHEL-64754 --- modules.d/35network-manager/module-setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules.d/35network-manager/module-setup.sh b/modules.d/35network-manager/module-setup.sh index c93c6a3c..6ed8c04e 100755 --- a/modules.d/35network-manager/module-setup.sh +++ b/modules.d/35network-manager/module-setup.sh @@ -19,6 +19,11 @@ installkernel() { return 0 } +# called by dracut +installkernel() { + instmods nf_tables nfnetlink nft_fwd_netdev +} + # called by dracut install() { local _nm_version From 48ff57115ffd8062643b11ef82c3afbb7334b0f4 Mon Sep 17 00:00:00 2001 From: Fernando Fernandez Mancera Date: Thu, 21 Nov 2024 00:40:27 +0100 Subject: [PATCH 2/2] fix(35network-manager): install nft binary during module installation NetworkManager has a new bonding mode called balance-slb. This mode is used in environments where NICs are connected to switches without LACP. In order to work, NetworkManager configures a set of nftables rules. The 'nft' binary is required to work. Signed-off-by: Fernando Fernandez Mancera (cherry picked from commit 37317b61fda5181aeb0604381e994e8181a53200) Resolves: RHEL-64754 --- modules.d/35network-manager/module-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules.d/35network-manager/module-setup.sh b/modules.d/35network-manager/module-setup.sh index 6ed8c04e..4fd3d051 100755 --- a/modules.d/35network-manager/module-setup.sh +++ b/modules.d/35network-manager/module-setup.sh @@ -37,7 +37,7 @@ install() { inst NetworkManager inst_multiple -o /usr/{lib,libexec}/nm-initrd-generator inst_multiple -o /usr/{lib,libexec}/nm-daemon-helper - inst_multiple -o teamd dhclient + inst_multiple -o teamd dhclient nft inst_hook cmdline 99 "$moddir/nm-config.sh" if dracut_module_included "systemd"; then