]>
Commit | Line | Data |
---|---|---|
a7c64469 LP |
1 | <?xml version="1.0"?> |
2 | <!--*-nxml-*--> | |
3a54a157 | 3 | <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
eea10b26 | 4 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"> |
db9ecf05 | 5 | <!-- SPDX-License-Identifier: LGPL-2.1-or-later --> |
d3fae78f | 6 | <refentry id="modules-load.d" conditional='HAVE_KMOD' |
798d3a52 ZJS |
7 | xmlns:xi="http://www.w3.org/2001/XInclude"> |
8 | ||
9 | <refentryinfo> | |
10 | <title>modules-load.d</title> | |
11 | <productname>systemd</productname> | |
798d3a52 ZJS |
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> | |
73e97bb0 ZJS |
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> | |
798d3a52 ZJS |
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 | |
7602c46f | 64 | virtio-net</programlisting> |
798d3a52 ZJS |
65 | </example> |
66 | </refsect1> | |
67 | ||
68 | <refsect1> | |
69 | <title>See Also</title> | |
13a69c12 DT |
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> | |
798d3a52 | 76 | </refsect1> |
a7c64469 LP |
77 | |
78 | </refentry> |