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 <kheib@redhat.com>
This commit is contained in:
parent
8593f335dc
commit
d7ba734cf9
@ -0,0 +1,27 @@
|
||||
From c685d42987f92790772dd81806ff7d233d3e69ae Mon Sep 17 00:00:00 2001
|
||||
From: Kamal Heib <kheib@redhat.com>
|
||||
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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user