[projects/geninitrd] Try to detect a need for nvme driver. If you know better method then share with us.
arekm
arekm at pld-linux.org
Sun Jul 21 21:04:10 CEST 2019
commit 04b32086569a126d5d6f9bd0ad1b0db9f142f50e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Jul 21 21:04:05 2019 +0200
Try to detect a need for nvme driver. If you know better method then share with us.
geninitrd | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/geninitrd b/geninitrd
index b5d405a..05e290a 100755
--- a/geninitrd
+++ b/geninitrd
@@ -673,6 +673,11 @@ find_modules_for_devpath() {
return
fi
+ if [[ "$devpath" == /dev/nvme* ]]; then
+ find_module "nvme"
+ return
+ fi
+
if [[ "$devpath" == /dev/bcache* ]]; then
find_modules_bcache "$devpath"
return
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/geninitrd.git/commitdiff/04b32086569a126d5d6f9bd0ad1b0db9f142f50e
More information about the pld-cvs-commit
mailing list