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