summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarol Lewandowski <k.lewandowsk@samsung.com>2021-07-08 12:35:38 +0200
committerSeung-Woo Kim <sw0312.kim@samsung.com>2022-01-10 11:20:03 +0900
commit6d4741e57f262bd496cafcd6f3d2736f78b77a3d (patch)
tree099e0aff1b6cb8ca1ad985a0bdceb9bb370a6138
parent00e3667df29bca67f5b468f31e23f4e260b9b48c (diff)
downloadkmod-6d4741e57f262bd496cafcd6f3d2736f78b77a3d.tar.gz
kmod-6d4741e57f262bd496cafcd6f3d2736f78b77a3d.tar.bz2
kmod-6d4741e57f262bd496cafcd6f3d2736f78b77a3d.zip
Add /lib/modules/modprobe.d to configuration search pathsubmit/tizen_base/20220110.024004accepted/tizen/base/20220112.061949
This commit adds additional tizen-specific /lib/modules/modprobe.d to kmod search path to allow for packages providing modules to also provide its configuration. In Tizen kernel and modules images are build separately from "platform" image, meaning only limited paths can be used (/lib/modules, /hal) for its files to be accessible from the system. Change-Id: I6985339abd1234aecfb5802484bd57f36a64bab2 Signed-off-by: Karol Lewandowski <k.lewandowsk@samsung.com>
-rw-r--r--libkmod/libkmod.c1
-rw-r--r--man/modprobe.d.xml1
2 files changed, 2 insertions, 0 deletions
diff --git a/libkmod/libkmod.c b/libkmod/libkmod.c
index 7c2b889..49cbe99 100644
--- a/libkmod/libkmod.c
+++ b/libkmod/libkmod.c
@@ -66,6 +66,7 @@ static const char *default_config_paths[] = {
"/run/modprobe.d",
"/usr/local/lib/modprobe.d",
"/lib/modprobe.d",
+ "/lib/modules/modprobe.d",
NULL
};
diff --git a/man/modprobe.d.xml b/man/modprobe.d.xml
index 0ab3e91..b5d4ca3 100644
--- a/man/modprobe.d.xml
+++ b/man/modprobe.d.xml
@@ -44,6 +44,7 @@
<para><filename>/usr/local/lib/modprobe.d/*.conf</filename></para>
<para><filename>/run/modprobe.d/*.conf</filename></para>
<para><filename>/etc/modprobe.d/*.conf</filename></para>
+ <para><filename>/lib/modules/modprobe.d/*.conf</filename></para>
</refsynopsisdiv>
<refsect1><title>DESCRIPTION</title>