ab0e4d
From 8300849e5d8825c6b60dec682eec4767701e95ac Mon Sep 17 00:00:00 2001
ab0e4d
From: Kairui Song <kasong@redhat.com>
ab0e4d
Date: Mon, 16 Nov 2020 15:24:14 +0800
ab0e4d
Subject: [PATCH] 95fcoe: ensure needed modules are installed
ab0e4d
ab0e4d
If fcoe module is loaded, the initramfs will always try load libfcoe
ab0e4d
and bnx2fc, so also ensure they are installed if needed.
ab0e4d
ab0e4d
Signed-off-by: Kairui Song <kasong@redhat.com>
ab0e4d
(cherry picked from commit 4339d47cf810d8a79f20cf2b86d15af7ec859052)
ab0e4d
ab0e4d
Resolves: #1898814
ab0e4d
---
ab0e4d
 modules.d/95fcoe/module-setup.sh | 2 +-
ab0e4d
 1 file changed, 1 insertion(+), 1 deletion(-)
ab0e4d
ab0e4d
diff --git a/modules.d/95fcoe/module-setup.sh b/modules.d/95fcoe/module-setup.sh
ab0e4d
index 63f45b52..c2224ec1 100755
ab0e4d
--- a/modules.d/95fcoe/module-setup.sh
ab0e4d
+++ b/modules.d/95fcoe/module-setup.sh
ab0e4d
@@ -23,7 +23,7 @@ depends() {
ab0e4d
 
ab0e4d
 # called by dracut
ab0e4d
 installkernel() {
ab0e4d
-    instmods fcoe 8021q edd
ab0e4d
+    instmods fcoe libfcoe 8021q edd bnx2fc
ab0e4d
 }
ab0e4d
 
ab0e4d
 get_vlan_parent() {
ab0e4d