1DEPMOD.CONF(5) DEPMOD.CONF(5)
2
3
4
6 depmod.conf, depmod.d - Configuration file/directory for depmod
7
9 The order in which modules are processed by the depmod command can be
10 altered on a global or per-module basis. This is typically useful in
11 cases where built-in kernel modules are complemented by custom built
12 versions of the same and the user wishes to affect the priority of pro‐
13 cessing in order to override the module version supplied by the kernel.
14
15 The format of depmod.conf and files under depmod.d is simple: one com‐
16 mand per line, with blank lines and lines starting with '#' ignored
17 (useful for adding comments). A '\' at the end of a line causes it to
18 continue on the next line, which makes the file a bit neater.
19
21 path subdirectory...
22 This allows you to specify additional directories (other than
23 the default of /lib/modules) that will be searched and indexed
24 for available modules by depmod. This option can be used in com‐
25 bination with the search option (which configures behavior
26 within a given directory specified using the path option).
27
28 By default, depmod will search the standard system /lib/mod‐
29 ules/kernelversion directory for modules, but you can use this
30 option to have it index additional directories that may be on an
31 entirely different filesystem.
32
33 search subdirectory...
34 This allows you to specify the order in which /lib/modules (or
35 other configured module location) subdirectories will be pro‐
36 cessed by depmod. Directories are listed in order, with the
37 highest priority given to the first listed directory and the
38 lowest priority given to the last directory listed. The special
39 keyword built-in refers to the standard module directories
40 installed by the kernel.
41
42 By default, depmod will give a higher priority to a directory
43 with the name updates using this built-in search string:
44 "updates built-in" but more complex arrangements are possible
45 and are used in several popular distributions.
46
47 override modulename kernelversion modulesubdirectory
48 This command allows you to override which version of a specific
49 module will be used when more than one module sharing the same
50 name is processed by the depmod command. It is possible to spec‐
51 ify one kernel or all kernels using the * wildcard. modulesub‐
52 directory is the name of the subdirectory under /lib/modules (or
53 other module location) where the target module is installed.
54
55 For example, it is possible to override the priority of an
56 updated test module called kmp by specifying the following com‐
57 mand: "override kmp * extra". This will ensure that any match‐
58 ing module name installed under the extra subdirectory within
59 /lib/modules (or other module location) will take priority over
60 any likenamed module already provided by the kernel.
61
63 This manual page Copyright 2006, Jon Masters, Red Hat, Inc.
64
66 depmod(8)
67
68
69
70 2005-09-23 DEPMOD.CONF(5)