1DEPMOD.D(5)                        depmod.d                        DEPMOD.D(5)
2
3
4

NAME

6       depmod.d - Configuration directory for depmod
7

SYNOPSIS

9       /usr/lib/depmod.d/*.conf
10
11       /usr/local/lib/depmod.d/*.conf
12
13       /run/depmod.d/*.conf
14
15       /etc/depmod.d/*.conf
16

DESCRIPTION

18       The order in which modules are processed by the depmod command can be
19       altered on a global or per-module basis. This is typically useful in
20       cases where built-in kernel modules are complemented by custom built
21       versions of the same and the user wishes to affect the priority of
22       processing in order to override the module version supplied by the
23       kernel.
24
25       The format of files under depmod.d is simple: one command per line,
26       with blank lines and lines starting with '#' ignored (useful for adding
27       comments). A '\' at the end of a line causes it to continue on the next
28       line, which makes the files a bit neater.
29

COMMANDS

31       search subdirectory...
32           This allows you to specify the order in which /lib/modules (or
33           other configured module location) subdirectories will be processed
34           by depmod. Directories are listed in order, with the highest
35           priority given to the first listed directory and the lowest
36           priority given to the last directory listed. The special keyword
37           built-in refers to the standard module directories installed by the
38           kernel. Another special keyword external refers to the list of
39           external directories, defined by the external command.
40
41           By default, depmod will give a higher priority to a directory with
42           the name updates using this built-in search string: "updates
43           built-in" but more complex arrangements are possible and are used
44           in several popular distributions.
45
46       override modulename kernelversion modulesubdirectory
47           This command allows you to override which version of a specific
48           module will be used when more than one module sharing the same name
49           is processed by the depmod command. It is possible to specify one
50           kernel or all kernels using the * wildcard.  modulesubdirectory is
51           the name of the subdirectory under /lib/modules (or other module
52           location) where the target module is installed.
53
54           For example, it is possible to override the priority of an updated
55           test module called kmod by specifying the following command:
56           "override kmod * extra". This will ensure that any matching module
57           name installed under the extra subdirectory within /lib/modules (or
58           other module location) will take priority over any likenamed module
59           already provided by the kernel.
60
61       external kernelversion absolutemodulesdirectory...
62           This specifies a list of directories, which will be checked
63           according to the priorities in the search command. The order
64           matters also, the first directory has the higher priority.
65
66           The kernelversion is a POSIX regular expression or * wildcard, like
67           in the override.
68
70       This manual page Copyright 2006-2010, Jon Masters, Red Hat, Inc.
71

SEE ALSO

73       depmod(8)
74

AUTHORS

76       Jon Masters <jcm@jonmasters.org>
77           Developer
78
79       Robby Workman <rworkman@slackware.com>
80           Developer
81
82       Lucas De Marchi <lucas.de.marchi@gmail.com>
83           Developer
84
85
86
87kmod                              01/29/2021                       DEPMOD.D(5)
Impressum