Linux-Modules Archive on
 help / color / Atom feed
From: Lucas De Marchi <>
To: Jan Tojnar <>
Cc: linux-modules <>
Subject: Re: Support for /usr/local/lib/modprobe.d
Date: Mon, 6 Jul 2020 23:34:20 -0700
Message-ID: <> (raw)
In-Reply-To: <>

On Wed, Jul 1, 2020 at 6:21 PM Jan Tojnar <> wrote:
> Hello.
> We are working with a project that ships a blacklist file [1] that is
> supposed to be installed to modprobe.d directory but it is not clear
> what the default installation path should be.
> Distros will typically install modprobe config files to
> /lib/modprobe.d but it is common to use /usr/local as the default
> prefix [2] for manual `make` invocations. The manual page [3] does not
> list /usr/local/lib/modprobe.d as a supported location though.
> In the past module-init-tools added [4] support for that path but that
> repo appears to be abandoned and it does not look like kmod supports
> it [5].
> 1. Am I missing something, or was this an omission when porting
> modprobe to kmod?
> 2. Could the support be added?

That is probably because we don't default prefix to /usr/local so people never
actually needed it. Yes, I think we could add. Could you prepare a
patch for that?

> 3. Should we default to /lib or /etc for manual `make` invocations for
> now?

/lib is where packages should install and /etc is up to the system
admin to set up.
if we add /usr/local, then override order would be /etc, /usr/local/lib, /lib.

Lucas De Marchi

> [1]:
> [2]:
> [3]:
> [4]:
> [5]:
> Cheers,
> Jan

Lucas De Marchi

      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-02  1:20 Jan Tojnar
2020-07-07  6:34 ` Lucas De Marchi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='' \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux-Modules Archive on

Archives are clonable:
	git clone --mirror linux-modules/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-modules linux-modules/ \
	public-inbox-index linux-modules

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone