]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/modules-load.d.xml
086010ebe7bbb0cc7a74df35e4bb5e3ab9a437f2
[thirdparty/systemd.git] / man / modules-load.d.xml
1 <?xml version="1.0"?>
2 <!--*-nxml-*-->
3 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
4 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
5 <!-- SPDX-License-Identifier: LGPL-2.1-or-later -->
6 <refentry id="modules-load.d" conditional='HAVE_KMOD'
7 xmlns:xi="http://www.w3.org/2001/XInclude">
8
9 <refentryinfo>
10 <title>modules-load.d</title>
11 <productname>systemd</productname>
12 </refentryinfo>
13
14 <refmeta>
15 <refentrytitle>modules-load.d</refentrytitle>
16 <manvolnum>5</manvolnum>
17 </refmeta>
18
19 <refnamediv>
20 <refname>modules-load.d</refname>
21 <refpurpose>Configure kernel modules to load at boot</refpurpose>
22 </refnamediv>
23
24 <refsynopsisdiv>
25 <para><simplelist>
26 <member><filename>/etc/modules-load.d/*.conf</filename></member>
27 <member><filename>/run/modules-load.d/*.conf</filename></member>
28 <member><filename>/usr/lib/modules-load.d/*.conf</filename></member>
29 </simplelist></para>
30 </refsynopsisdiv>
31
32 <refsect1>
33 <title>Description</title>
34
35 <para><citerefentry><refentrytitle>systemd-modules-load.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>
36 reads files from the above directories which contain kernel
37 modules to load during boot in a static list. Each configuration
38 file is named in the style of
39 <filename>/etc/modules-load.d/<replaceable>program</replaceable>.conf</filename>.
40 Note that it is usually a better idea to rely on the automatic
41 module loading by PCI IDs, USB IDs, DMI IDs or similar triggers
42 encoded in the kernel modules themselves instead of static
43 configuration like this. In fact, most modern kernel modules are
44 prepared for automatic loading already.</para>
45 </refsect1>
46
47 <refsect1>
48 <title>Configuration Format</title>
49
50 <para>The configuration files should simply contain a list of
51 kernel module names to load, separated by newlines. Empty lines
52 and lines whose first non-whitespace character is # or ; are
53 ignored.</para>
54 </refsect1>
55
56 <xi:include href="standard-conf.xml" xpointer="confd" />
57
58 <refsect1>
59 <title>Example</title>
60 <example>
61 <title>/etc/modules-load.d/virtio-net.conf example:</title>
62
63 <programlisting># Load virtio-net.ko at boot
64 virtio-net</programlisting>
65 </example>
66 </refsect1>
67
68 <refsect1>
69 <title>See Also</title>
70 <para><simplelist type="inline">
71 <member><citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
72 <member><citerefentry><refentrytitle>systemd-modules-load.service</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
73 <member><citerefentry><refentrytitle>systemd-delta</refentrytitle><manvolnum>1</manvolnum></citerefentry></member>
74 <member><citerefentry project='man-pages'><refentrytitle>modprobe</refentrytitle><manvolnum>8</manvolnum></citerefentry></member>
75 </simplelist></para>
76 </refsect1>
77
78 </refentry>