~registry/kmod/master

« back to all changes in this revision

Viewing changes to Makefile.am

  • 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>

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
        -include $(top_builddir)/config.h \
20
20
        -I$(top_srcdir) \
21
21
        -DSYSCONFDIR=\""$(sysconfdir)"\" \
 
22
        -DDISTCONFDIR=\""$(distconfdir)"\" \
22
23
        ${zlib_CFLAGS}
23
24
 
24
25
AM_CFLAGS = $(OUR_CFLAGS)