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