linux-modules.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Emil Velikov via B4 Relay <devnull+emil.l.velikov.gmail.com@kernel.org>
To: linux-modules@vger.kernel.org
Cc: Emil Velikov <emil.l.velikov@gmail.com>
Subject: [PATCH kmod 17/20] man: modprobe.d: mention about MODPROBE_OPTIONS
Date: Tue, 11 Jun 2024 16:05:17 +0100	[thread overview]
Message-ID: <20240611-man-v1-17-bd6864d49639@gmail.com> (raw)
In-Reply-To: <20240611-man-v1-0-bd6864d49639@gmail.com>

From: Emil Velikov <emil.l.velikov@gmail.com>

The environment variable alters the config file ordering, so mention it
in the man page.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
---
Hi Lucas,

Looking at modprobe(8), while the variable is mentioned there is no
details about:
 - the format and it's stability across versions - is it ABI
 - is the same option (say config) allowed multiple times
   - if so, does the latest(?) instance override the previous ones, or
   - all instances are in effect, with the latest(?) having the highest
     priority

Can you shed some light? I'd be happy to put that in patch form :-)

Thanks
Emil
---
 man/modprobe.d.5.scd | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/man/modprobe.d.5.scd b/man/modprobe.d.5.scd
index b300758..9d03c49 100644
--- a/man/modprobe.d.5.scd
+++ b/man/modprobe.d.5.scd
@@ -46,6 +46,10 @@ the SYNOPSIS section above. Files must have the ".conf" extension. Files in
 @DISTCONFDIR@/, and /lib/. Files in /run/ override files with the same name
 under /usr/, @DISTCONFDIR@/ and /lib/.
 
+NOTE: Any configuration directories set via the MODPROBE_OPTIONS environment
+variable are added with the top-most priority. See the ENVIRONMENT section in
+*modprobe*(8).
+
 All configuration files are sorted by their filename in lexicographic order,
 regardless of which of the directories they reside in. If multiple files specify
 the same option, the entry in the file with the lexicographically latest name

-- 
2.45.0



  parent reply	other threads:[~2024-06-11 15:05 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-11 15:05 [PATCH kmod 00/20] man: convert to scdoc and minor improvements Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 01/20] man: add script to generate/compare the xslt vs upcoming scdoc Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 02/20] man: add scdoc based man pages Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 03/20] man: build the " Emil Velikov via B4 Relay
2024-06-29 18:04   ` Lucas De Marchi
2024-07-03 22:05     ` Lucas De Marchi
2024-06-11 15:05 ` [PATCH kmod 04/20] man: remove no longer used XML files Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 05/20] man: add some extra bold/italic annotations Emil Velikov via B4 Relay
2024-06-28 22:27   ` Lucas De Marchi
2024-06-28 22:32     ` Lucas De Marchi
2024-06-11 15:05 ` [PATCH kmod 06/20] man: white space fixes Emil Velikov via B4 Relay
2024-06-28 22:30   ` Lucas De Marchi
2024-06-11 15:05 ` [PATCH kmod 07/20] man: misc punctuation fixes Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 08/20] man: some options take an argument, mention that Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 09/20] man: couple of grammar/language fixes Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 10/20] man: stop removing DISTCONFDIR lines Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 11/20] man: depmod.d: document the config file order handling Emil Velikov via B4 Relay
2024-06-29 17:26   ` Lucas De Marchi
2024-06-11 15:05 ` [PATCH kmod 12/20] man: depmod.d: factor out a CONFIGURATION FORMAT section Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 13/20] man: depmod.d: rework the opening description sentence Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 14/20] man: depmod: remove hard-coded /etc/depmod.d references Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 15/20] man: modprobe.d: document the config file order handling Emil Velikov via B4 Relay
2024-06-28 22:55   ` Lucas De Marchi
2024-06-11 15:05 ` [PATCH kmod 16/20] man: modprobe.d: factor out a CONFIGURATION FORMAT section Emil Velikov via B4 Relay
2024-06-11 15:05 ` Emil Velikov via B4 Relay [this message]
2024-06-29 17:13   ` [PATCH kmod 17/20] man: modprobe.d: mention about MODPROBE_OPTIONS Lucas De Marchi
2024-06-11 15:05 ` [PATCH kmod 18/20] man: modprobe: remove hard-coded /etc/modprobe.d references Emil Velikov via B4 Relay
2024-06-11 15:05 ` [PATCH kmod 19/20] man: remove the "Maintained by" references Emil Velikov via B4 Relay
2024-06-29 17:51   ` Lucas De Marchi
2024-06-11 15:05 ` [PATCH kmod 20/20] man: list options one per line Emil Velikov via B4 Relay
2024-06-29 18:08 ` [PATCH kmod 00/20] man: convert to scdoc and minor improvements Lucas De Marchi

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to=20240611-man-v1-17-bd6864d49639@gmail.com \
    --to=devnull+emil.l.velikov.gmail.com@kernel.org \
    --cc=emil.l.velikov@gmail.com \
    --cc=linux-modules@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).