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