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