]>
Commit | Line | Data |
---|---|---|
a7c64469 LP |
1 | <?xml version="1.0"?> |
2 | <!--*-nxml-*--> | |
3 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> | |
4 | <!-- | |
5 | This file is part of systemd. | |
6 | ||
c91faef3 | 7 | Copyright 2011 Lennart Poettering |
a7c64469 LP |
8 | |
9 | systemd is free software; you can redistribute it and/or modify it | |
5430f7f2 LP |
10 | under the terms of the GNU Lesser General Public License as published by |
11 | the Free Software Foundation; either version 2.1 of the License, or | |
a7c64469 LP |
12 | (at your option) any later version. |
13 | ||
14 | systemd is distributed in the hope that it will be useful, but | |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
5430f7f2 | 17 | Lesser General Public License for more details. |
a7c64469 | 18 | |
5430f7f2 | 19 | You should have received a copy of the GNU Lesser General Public License |
a7c64469 LP |
20 | along with systemd; If not, see <http://www.gnu.org/licenses/>. |
21 | --> | |
d3fae78f JT |
22 | <refentry id="modules-load.d" conditional='HAVE_KMOD' |
23 | xmlns:xi="http://www.w3.org/2001/XInclude"> | |
a7c64469 LP |
24 | |
25 | <refentryinfo> | |
26 | <title>modules-load.d</title> | |
27 | <productname>systemd</productname> | |
28 | ||
29 | <authorgroup> | |
30 | <author> | |
31 | <contrib>Developer</contrib> | |
32 | <firstname>Lennart</firstname> | |
33 | <surname>Poettering</surname> | |
34 | <email>lennart@poettering.net</email> | |
35 | </author> | |
36 | </authorgroup> | |
37 | </refentryinfo> | |
38 | ||
39 | <refmeta> | |
40 | <refentrytitle>modules-load.d</refentrytitle> | |
41 | <manvolnum>5</manvolnum> | |
42 | </refmeta> | |
43 | ||
44 | <refnamediv> | |
45 | <refname>modules-load.d</refname> | |
46 | <refpurpose>Configure kernel modules to load at boot</refpurpose> | |
47 | </refnamediv> | |
48 | ||
49 | <refsynopsisdiv> | |
50 | <para><filename>/etc/modules-load.d/*.conf</filename></para> | |
db1413d7 | 51 | <para><filename>/run/modules-load.d/*.conf</filename></para> |
fc1a2e06 | 52 | <para><filename>/usr/lib/modules-load.d/*.conf</filename></para> |
a7c64469 LP |
53 | </refsynopsisdiv> |
54 | ||
55 | <refsect1> | |
56 | <title>Description</title> | |
57 | ||
0e25e94e KS |
58 | <para><citerefentry><refentrytitle>systemd-modules-load.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> |
59 | reads files from the above directories which contain | |
60 | kernel modules to load during boot in a static list. | |
61 | Each configuration file is named in the style of | |
e670b166 | 62 | <filename>/etc/modules-load.d/<replaceable>program</replaceable>.conf</filename>. Note |
0e25e94e KS |
63 | that it is usually a better idea to rely on the |
64 | automatic module loading by PCI IDs, USB IDs, DMI IDs | |
65 | or similar triggers encoded in the kernel modules | |
66 | themselves instead of static configuration like | |
67 | this. In fact, most modern kernel modules are prepared | |
68 | for automatic loading already.</para> | |
a7c64469 LP |
69 | </refsect1> |
70 | ||
71 | <refsect1> | |
0e25e94e | 72 | <title>Configuration Format</title> |
a7c64469 | 73 | |
0e25e94e KS |
74 | <para>The configuration files should simply contain a |
75 | list of kernel module names to load, separated by | |
76 | newlines. Empty lines and lines whose first | |
77 | non-whitespace character is # or ; are ignored.</para> | |
a7c64469 LP |
78 | </refsect1> |
79 | ||
d3fae78f JT |
80 | <xi:include href="standard-conf.xml" xpointer="confd" /> |
81 | ||
a7c64469 LP |
82 | <refsect1> |
83 | <title>Example</title> | |
84 | <example> | |
7602c46f | 85 | <title>/etc/modules-load.d/virtio-net.conf example:</title> |
a7c64469 | 86 | |
7602c46f LP |
87 | <programlisting># Load virtio-net.ko at boot |
88 | virtio-net</programlisting> | |
a7c64469 LP |
89 | </example> |
90 | </refsect1> | |
91 | ||
92 | <refsect1> | |
93 | <title>See Also</title> | |
94 | <para> | |
95 | <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
9393a877 LP |
96 | <citerefentry><refentrytitle>systemd-modules-load.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>, |
97 | <citerefentry><refentrytitle>systemd-delta</refentrytitle><manvolnum>1</manvolnum></citerefentry>, | |
a7c64469 LP |
98 | <citerefentry><refentrytitle>modprobe</refentrytitle><manvolnum>8</manvolnum></citerefentry> |
99 | </para> | |
100 | </refsect1> | |
101 | ||
102 | </refentry> |