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