Debian Codegraph @

man/depmod.d.5.scd

raw
1 DEPMOD.D(5) "kmod" "depmod.d"
2
3 # NAME
4
5 depmod.d - Configuration directory for depmod
6
7 # SYNOPSIS
8
9 @SYSCONFDIR@/depmod.d/\*.conf
10
11 /run/depmod.d/\*.conf
12
13 /usr/local/lib/depmod.d/\*.conf
14
15 @DISTCONFDIR@/depmod.d/\*.conf
16
17 /lib/depmod.d/\*.conf
18
19 # DESCRIPTION
20
21 On execution *depmod* reads the configuration files from the above location and
22 based on that it processes the available modules and their dependencies. For
23 example: one can change the search order, exclude folders, override specific
24 module's location and more.
25
26 This is typically useful in cases where built-in kernel modules are complemented
27 by custom built versions of the same and the user wishes to affect the priority
28 of processing in order to override the module version supplied by the kernel.
29
30 # CONFIGURATION FORMAT
31
32 The configuration files contain one command per line, with blank lines and lines
33 starting with '#' ignored (useful for adding comments). A '\\' at the end of a
34 line causes it to continue on the next line, which makes the files a bit neater.
35
36 See the COMMANDS section below for more.
37
38 # CONFIGURATION DIRECTORIES AND PRECEDENCE
39
40 Configuration files are read from directories in listed in SYNOPSIS in that
41 order of precedence. Once a file of a given filename is loaded, any file of the
42 same name in subsequent directories is ignored.
43
44 All configuration files are sorted in lexicographic order, regardless of the
45 directory they reside in. Configuration files can either be completely replaced
46 (by having a new configuration file with the same name in a directory of higher
47 priority) or partially replaced (by having a configuration file that is ordered
48 later).
49
50 # COMMANDS
51
52 search _subdirectory..._
53 This allows you to specify the order in which @MODULE_DIRECTORY@ (or
54 other configured module location) subdirectories will be processed by
55 *depmod*. Directories are listed in order, with the highest priority
56 given to the first listed directory and the lowest priority given to the
57 last directory listed. The special keyword *built-in* refers to the
58 standard module directories installed by the kernel. Another special
59 keyword *external* refers to the list of external directories, defined
60 by the *external* command.
61
62 By default, depmod will give a higher priority to a directory with the
63 name *updates* using this built-in search string: "updates built-in" but
64 more complex arrangements are possible and are used in several popular
65 distributions.
66
67 override _modulename_ _kernelversion_ _modulesubdirectory_
68 This command allows you to override which version of a specific module
69 will be used when more than one module sharing the same name is
70 processed by the *depmod* command. It is possible to specify one kernel
71 or all kernels using the \* wildcard. _modulesubdirectory_ is the name
72 of the subdirectory under @MODULE_DIRECTORY@ (or other module location)
73 where the target module is installed.
74
75 For example, it is possible to override the priority of an updated test
76 module called *kmod* by specifying the following command: "override
77 kmod \* extra". This will ensure that any matching module name installed
78 under the *extra* subdirectory within @MODULE_DIRECTORY@ (or other
79 module location) will take priority over any likenamed module already
80 provided by the kernel.
81
82 external _kernelversion_ _absolutemodulesdirectory..._
83 This specifies a list of directories, which will be checked according to
84 the priorities in the *search* command. The order matters also, the
85 first directory has the higher priority.
86
87 The _kernelversion_ is a POSIX regular expression or \* wildcard, like
88 in the *override*.
89
90 exclude _excludedir_
91 This specifies the trailing directories that will be excluded during the
92 search for kernel modules.
93
94 The _excludedir_ is the trailing directory to exclude.
95
96 # COPYRIGHT
97
98 This manual page Copyright 2006-2010, Jon Masters, Red Hat, Inc.
99
100 # SEE ALSO
101
102 *depmod*(8)
103
104 # BUGS
105
106 Please direct any bug reports to kmod's issue tracker at
107 https://github.com/kmod-project/kmod/issues/ alongside with version used, steps
108 to reproduce the problem and the expected outcome.
109
110 # AUTHORS
111
112 Numerous contributions have come from the linux-modules mailing list
113 <[email protected]> and Github. If you have a clone of kmod.git
114 itself, the output of *git-shortlog*(1) and *git-blame*(1) can show you the
115 authors for specific parts of the project.
116
117 *Lucas De Marchi* <[email protected]> is the current maintainer of the
118 project.