~registry/kmod/master

  • Committer: Lucas De Marchi
  • Author(s): Michal Suchanek
  • Date: 2023-10-17 17:27:59 UTC
  • Revision ID: git-v1:8463809f8a29b254b2cab2ce755641bc690f07c9
libkmod, depmod: Load modprobe.d, depmod.d from ${prefix}/lib.

There is an ongoing effort to limit use of files outside of /usr (or
${prefix} on general). Currently all modprobe.d paths are hardcoded to
outside of $prefix. Teach kmod to load modprobe.d from ${prefix}/lib.

On some distributions /usr/lib and /lib are the same directory because
of a compatibility symlink, and it is possible to craft configuration
files with sideeffects that would behave differently when loaded twice.
However, the override semantic ensures that one 'overrides' the other,
and only one configuration file of the same name is loaded from any of
the search directories.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Link: https://lore.kernel.org/r/a290343ce32e2a3c25b134e4f27c13b26e06c9e0.1689681454.git.msuchanek@suse.de
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Filename Latest Rev Last Changed Committer Comment Size
..
libkmod 2 12 years ago Lucas De Marchi Rename libabc to libkmod Diff
m4 1 12 years ago Lucas De Marchi Import skeleton from libabc Diff
man 439 12 years ago Lucas De Marchi rename doc dir to man Diff
shared 919 9 years ago Lucas De Marchi Move macro.h to shared directory It's not really Diff
shell-completion 815 10 years ago Lucas De Marchi shell-completion: Add initial completion for kmod Diff
testsuite 495 12 years ago Lucas De Marchi testsuite: add skeleton Diff
tools 163 12 years ago Lucas De Marchi Merge branch 'use-mmap' Conflicts: libkmod/libkm Diff
.gitignore 1245 2 years ago Lucas De Marchi gitignore: ignore gtk-doc.make Reviewed-by: Luis 303 bytes Diff Download File
.travis.yml 1205 3 years ago Lucas De Marchi ci: update travis distro Don't bother with gcc 4. 802 bytes Diff Download File
File autogen.sh 1279 1 year ago Lucas De Marchi autogen.sh: remove --with-rootprefix, it is gone s 1.7 KB Diff Download File
CODING-STYLE 971 9 years ago Lucas De Marchi CODING-STYLE: add include order 2.3 KB Diff Download File
configure.ac 1310 6 months ago Lucas De Marchi libkmod, depmod: Load modprobe.d, depmod.d from ${ 11.4 KB Diff Download File
COPYING 928 9 years ago Lucas De Marchi Clarify what licences apply where This doesn't ch 25.8 KB Diff Download File
Makefile.am 1310 6 months ago Lucas De Marchi libkmod, depmod: Load modprobe.d, depmod.d from ${ 16.3 KB Diff Download File
NEWS 1307 6 months ago Lucas De Marchi kmod 31 30.2 KB Diff Download File
README.md 1271 1 year ago Lucas De Marchi README: Update optional dependencies Signed-off-b 3.7 KB Diff Download File
TODO 1142 6 years ago Lucas De Marchi libkmod-module: check for NULL before accessing po 2.1 KB Diff Download File