release: bump release to 3.15
[module-init-tools.git] / doc / depmod.conf.sgml
blobd055db113fa192fa04f5458d31a7a39281e0ecd7
1 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
2 <!ENTITY debian "<productname>Debian GNU/Linux</productname>">
3 <!ENTITY docbook "<productname>DocBook</productname>">
4 <!ENTITY sgml "<abbrev>SGML</abbrev>">
5 ]>
7 <!-- Stolen from manual page for docbook-to-man, DocBook source file
8 (C) 1999 W. Borgert debacle@debian.org
10 $Id: docbook-to-man.sgml,v 1.8 2002/04/27 15:28:02 debacle Exp $ -->
12 <refentry>
13 <refentryinfo>
14 <address>
15 <email>jcm@jonmasters.org</email>
16 </address>
17 <author>
18 <firstname>Jon</firstname>
19 <surname>Masters</surname>
20 </author>
21 <date>2010-03-01</date>
22 </refentryinfo>
23 <refmeta>
24 <refentrytitle>depmod.conf</refentrytitle>
25 <manvolnum>5</manvolnum>
26 </refmeta>
27 <refnamediv>
28 <refname>depmod.conf</refname><refname>depmod.d</refname> <refpurpose>Configuration file/directory for depmod</refpurpose>
29 </refnamediv>
30 <refsect1>
31 <title>DESCRIPTION</title>
33 <para>The order in which modules are processed by the
34 <command>depmod</command> command can be altered on a global or
35 per-module basis. This is typically useful in cases where built-in
36 kernel modules are complemented by custom built versions of the
37 same and the user wishes to affect the priority of processing in
38 order to override the module version supplied by the kernel.
39 </para>
40 <para>
41 The format of <filename>depmod.conf</filename> and files under <filename>depmod.d</filename> is simple: one
42 command per line, with blank lines and lines starting with '#'
43 ignored (useful for adding comments). A '\' at the end of a line
44 causes it to continue on the next line, which makes the file a
45 bit neater.
46 </para>
47 </refsect1>
48 <refsect1>
49 <title>COMMANDS</title>
50 <variablelist>
51 <varlistentry>
52 <term>search <replaceable>subdirectory...</replaceable>
53 </term>
54 <listitem>
55 <para>
56 This allows you to specify the order in which /lib/modules
57 (or other configured module location) subdirectories will
58 be processed by <command>depmod</command>. Directories are
59 listed in order, with the highest priority given to the
60 first listed directory and the lowest priority given to the last
61 directory listed. The special keyword <command>built-in</command>
62 refers to the standard module directories installed by the kernel.
63 </para>
64 <para>
65 By default, depmod will give a higher priority to
66 a directory with the name <command>updates</command>
67 using this built-in search string: "updates built-in"
68 but more complex arrangements are possible and are
69 used in several popular distributions.
70 </para>
71 </listitem>
72 </varlistentry>
73 <varlistentry>
74 <term>override <replaceable>modulename</replaceable> <replaceable>kernelversion</replaceable> <replaceable>modulesubdirectory</replaceable>
75 </term>
76 <listitem>
77 <para>
78 This command allows you to override which version of a
79 specific module will be used when more than one module
80 sharing the same name is processed by the
81 <command>depmod</command> command. It is possible to
82 specify one kernel or all kernels using the * wildcard.
83 <replaceable>modulesubdirectory</replaceable> is the
84 name of the subdirectory under /lib/modules (or other
85 module location) where the target module is installed.
86 </para>
87 <para>
88 For example, it is possible to override the priority of
89 an updated test module called <command>kmod</command> by
90 specifying the following command: "override kmod * extra".
91 This will ensure that any matching module name installed
92 under the <command>extra</command> subdirectory within
93 /lib/modules (or other module location) will take priority
94 over any likenamed module already provided by the kernel.
95 </para>
96 </listitem>
97 </varlistentry>
98 </variablelist>
99 </refsect1>
100 <refsect1>
101 <title>COPYRIGHT</title>
102 <para>
103 This manual page Copyright 2006-2010, Jon Masters, Red Hat, Inc.
104 </para>
105 </refsect1>
106 <refsect1>
107 <title>SEE ALSO</title>
108 <para><citerefentry>
109 <refentrytitle>depmod</refentrytitle><manvolnum>8</manvolnum>
110 </citerefentry>
111 </para>
112 </refsect1>
113 </refentry>
115 <!-- Keep this comment at the end of the file
116 Local variables:
117 mode: sgml
118 sgml-omittag:t
119 sgml-shorttag:t
120 sgml-minimize-attributes:nil
121 sgml-always-quote-attributes:t
122 sgml-indent-step:2
123 sgml-indent-data:t
124 sgml-parent-document:nil
125 sgml-default-dtd-file:nil
126 sgml-exposed-tags:nil
127 sgml-local-catalogs:nil
128 sgml-local-ecat-files:nil
129 End: