anitazha / rpms / ndctl

Forked from rpms/ndctl a year ago
Clone

Blame SOURCES/0207-meson-fix-modprobedatadir-default-value.patch

e0018b
From ed56d6053c532f43a8bbd109a87e754a43def845 Mon Sep 17 00:00:00 2001
e0018b
From: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
e0018b
Date: Thu, 11 Aug 2022 19:36:53 -0500
e0018b
Subject: [PATCH 207/217] meson: fix modprobedatadir default value
e0018b
e0018b
The modprobedatadir is now set as a meson option, but without a
e0018b
default value.
e0018b
e0018b
Set the default value if modprobedatadir is not set.
e0018b
e0018b
Link: https://lore.kernel.org/r/20220812003653.53992-1-miguel.bernal.marin@linux.intel.com
e0018b
Fixes: 524ad09d5eda ("meson: make modprobedatadir an option")
e0018b
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
e0018b
Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
e0018b
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
e0018b
---
e0018b
 contrib/meson.build | 2 +-
e0018b
 1 file changed, 1 insertion(+), 1 deletion(-)
e0018b
e0018b
diff --git a/contrib/meson.build b/contrib/meson.build
e0018b
index ad63a50..48aa7c0 100644
e0018b
--- a/contrib/meson.build
e0018b
+++ b/contrib/meson.build
e0018b
@@ -26,6 +26,6 @@ endif
e0018b
 
e0018b
 modprobedatadir = get_option('modprobedatadir')
e0018b
 if modprobedatadir == ''
e0018b
-  modprobedatadir = get_option('modprobedatadir')
e0018b
+  modprobedatadir = sysconfdir + '/modprobe.d/'
e0018b
 endif
e0018b
 install_data('nvdimm-security.conf', install_dir : modprobedatadir)
e0018b
-- 
e0018b
2.27.0
e0018b