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