kernel: Autoload nvme at preinit time
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 23 Jul 2023 20:23:40 +0000 (22:23 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 11 Aug 2023 10:53:34 +0000 (12:53 +0200)
This way is possible to mount nvme extroots.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit 0fe9a8ca94830270820f7a1eb457f5d5d587125d)

package/kernel/linux/modules/block.mk

index bdf84e8ae29b238f97aa84ffeb03ebffe7a07db6..4ee3f78f3809a25d0442b7c0e3512ed6c284f072 100644 (file)
@@ -505,7 +505,7 @@ define KernelPackage/nvme
   FILES:= \
        $(LINUX_DIR)/drivers/nvme/host/nvme-core.ko \
        $(LINUX_DIR)/drivers/nvme/host/nvme.ko
-  AUTOLOAD:=$(call AutoLoad,30,nvme-core nvme)
+  AUTOLOAD:=$(call AutoLoad,30,nvme-core nvme,1)
 endef
 
 define KernelPackage/nvme/description