]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod, depmod, modprobe: Make directory for kernel modules configurable
authorMichal Suchanek <msuchanek@suse.de>
Fri, 10 Nov 2023 12:13:54 +0000 (13:13 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 6 Dec 2023 15:53:05 +0000 (09:53 -0600)
commit9d1fb317c8dbf2b834b3d0efb34208eb8fb790fb
tree4a02f1bbfd4b369e718952af379d63efa9548665
parent510c8b7f7455c6613dd1706e5e41ec7b09cf6703
libkmod, depmod, modprobe: Make directory for kernel modules configurable

Now that modprobe.d is searched under ${prefix}/lib, allow a complete
transition to files only under ${prefix} by adding a ${module_directory}
configuration. This specifies the directory where to search for kernel
modules and should match the location where the kernel/distro installs
them.

With this distributions that do not want to ship files in /lib can also
move kernel modules to /usr while others can keep them in /lib.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Link: https://lore.kernel.org/r/a3765f4e8ae3ce29c0847a0132d4a8d51ad040a9.1699618135.git.msuchanek@suse.de
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
18 files changed:
Makefile.am
configure.ac
libkmod/libkmod.c
man/Makefile.am
man/depmod.d.xml
man/depmod.xml
man/modinfo.xml
man/modprobe.xml
man/modules.dep.xml
testsuite/module-playground/Makefile
testsuite/setup-rootfs.sh
testsuite/test-depmod.c
testsuite/test-testsuite.c
tools/depmod.c
tools/kmod.pc.in
tools/modinfo.c
tools/modprobe.c
tools/static-nodes.c