From: Emil Velikov <emil.l.velikov@xxxxxxxxx> The environment variable alters the config file ordering, so mention it in the man page. Signed-off-by: Emil Velikov <emil.l.velikov@xxxxxxxxx> --- 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