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