From d7ba734cf95227851b4d79bda76068a89fa351da Mon Sep 17 00:00:00 2001 From: Kamal Heib Date: Wed, 5 Aug 2026 11:56:58 -0400 Subject: [PATCH] Fix missing rdma kernel modules from installer initrd Revert upstream dracut non-hostonly check to fix missing rdma modules in installer initrd Upstream commit 85afa2bc9214 changed the dracut 50rdma module to return 255 (skip) in non-hostonly mode, which prevents rdma kernel modules from being included in the installer initrd. Revert this change so the module returns 0 (include) in non-hostonly mode, ensuring rdma modules are available during installation. Resolves: RHEL-227898 Signed-off-by: Kamal Heib --- ...-not-install-dracut-module-in-non-ho.patch | 27 +++++++++++++++++++ rdma-core.spec | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 0001-Revert-dracut-do-not-install-dracut-module-in-non-ho.patch diff --git a/0001-Revert-dracut-do-not-install-dracut-module-in-non-ho.patch b/0001-Revert-dracut-do-not-install-dracut-module-in-non-ho.patch new file mode 100644 index 0000000..4b691c4 --- /dev/null +++ b/0001-Revert-dracut-do-not-install-dracut-module-in-non-ho.patch @@ -0,0 +1,27 @@ +From c685d42987f92790772dd81806ff7d233d3e69ae Mon Sep 17 00:00:00 2001 +From: Kamal Heib +Date: Wed, 5 Aug 2026 11:54:44 -0400 +Subject: [PATCH] Revert "dracut: do not install dracut module in non-hostonly + by default" + +This reverts commit 85afa2bc9214dbc7f0921066099fa1d63dff2370. +--- + kernel-boot/dracut/50rdma/module-setup.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/kernel-boot/dracut/50rdma/module-setup.sh b/kernel-boot/dracut/50rdma/module-setup.sh +index e4929e9a1225..09162062060a 100644 +--- a/kernel-boot/dracut/50rdma/module-setup.sh ++++ b/kernel-boot/dracut/50rdma/module-setup.sh +@@ -3,7 +3,7 @@ + check() { + [ -n "$hostonly" ] && [ -e /sys/class/infiniband_verbs/uverbs0 ] && return 0 + [ -n "$hostonly" ] && return 255 +- return 255 ++ return 0 + } + + depends() { +-- +2.55.0 + diff --git a/rdma-core.spec b/rdma-core.spec index fc9b2f2..538af98 100644 --- a/rdma-core.spec +++ b/rdma-core.spec @@ -10,6 +10,7 @@ Summary: RDMA core userspace libraries and daemons License: GPLv2 or BSD Url: https://github.com/linux-rdma/rdma-core Source: https://github.com/linux-rdma/rdma-core/releases/download/v%{version}/%{name}-%{version}.tar.gz +Patch0001: 0001-Revert-dracut-do-not-install-dracut-module-in-non-ho.patch Patch9999: 9999-udev-keep-NAME_KERNEL-as-default-interface-naming-co.patch # Do not build static libs by default. %define with_static %{?_with_static: 1} %{?!_with_static: 0} @@ -283,6 +284,7 @@ easy, object-oriented access to IB verbs. %prep %setup -q %if 0%{?rhel} +%patch 0001 -p1 %patch 9999 -p1 %endif