]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(nvmf): install (only) required nvmf modules
authorMartin Wilck <mwilck@suse.com>
Mon, 9 Sep 2024 07:43:01 +0000 (09:43 +0200)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Wed, 11 Sep 2024 12:06:55 +0000 (08:06 -0400)
nvme_rdma was not installed, even if it was required, whereas
nvme_tcp was installed in non-TCP setups. nvme_fabrics will be
pulled in automatically by any transport module and doesn't
need to be installed explicitly.

Fix it.

modules.d/95nvmf/module-setup.sh

index 15b74b78a64a6f44dbe5ad013a76de14d1d6ba2e..0b88044c8c18d0e062c03c315237efd087afba57 100755 (executable)
@@ -69,8 +69,9 @@ depends() {
 
 # called by dracut
 installkernel() {
-    instmods nvme_fc lpfc qla2xxx
-    hostonly="" instmods nvme_tcp nvme_fabrics 8021q
+    instmods nvme_fc nvme_tcp nvme_rdma lpfc qla2xxx
+    # 802.1q VLAN may be set up in Firmware later. Include the module always.
+    hostonly="" instmods 8021q
 }
 
 # called by dracut