Debian Codegraph @

upstream/debian-unstable/man5/modules-load.d.5

raw
1 '\" t
2 .TH "MODULES\-LOAD\&.D" "5" "" "systemd 261~rc3" "modules-load.d"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 modules-load.d \- Configure kernel modules to load at boot
24 .SH "SYNOPSIS"
25 .PP
26 .RS 4
27 /etc/modules\-load\&.d/*\&.conf
28 .RE
29 .RS 4
30 /run/modules\-load\&.d/*\&.conf
31 .RE
32 .RS 4
33 /usr/local/lib/modules\-load\&.d/*\&.conf
34 .RE
35 .RS 4
36 /usr/lib/modules\-load\&.d/*\&.conf
37 .RE
38 .SH "DESCRIPTION"
39 .PP
40 \fBsystemd-modules-load.service\fR(8)
41 reads files from the above directories which contain kernel modules to load during boot in a static list\&. Each configuration file is named in the style of
42 /etc/modules\-load\&.d/\fIprogram\fR\&.conf\&. Note that it is usually a better idea to rely on the automatic module loading by PCI IDs, USB IDs, DMI IDs or similar triggers encoded in the kernel modules themselves instead of static configuration like this\&. In fact, most modern kernel modules are prepared for automatic loading already\&.
43 .SH "CONFIGURATION FORMAT"
44 .PP
45 The configuration files should simply contain a list of kernel module names to load, separated by newlines\&. Empty lines and lines whose first non\-whitespace character is # or ; are ignored\&.
46 .SH "CONFIGURATION DIRECTORIES AND PRECEDENCE"
47 .PP
48 Configuration files are read from directories in
49 /etc/,
50 /run/,
51 /usr/local/lib/, and
52 /usr/lib/, in order of precedence, as listed in the SYNOPSIS section above\&. Files must have the
53 "\&.conf"
54 extension\&. Files in
55 /etc/
56 override files with the same name in
57 /run/,
58 /usr/local/lib/, and
59 /usr/lib/\&. Files in
60 /run/
61 override files with the same name under
62 /usr/\&.
63 .PP
64 All configuration files are sorted by their filename in lexicographic order, regardless of which of the directories they reside in\&. If multiple files specify the same option, the entry in the file with the lexicographically latest name will take precedence\&. Thus, the configuration in a certain file may either be replaced completely (by placing a file with the same name in a directory with higher priority), or individual settings might be changed (by specifying additional settings in a file with a different name that is ordered later)\&.
65 .PP
66 Packages should install their configuration files in
67 /usr/lib/
68 (distribution packages) or
69 /usr/local/lib/
70 (local installs)
71 \&\s-2\u[1]\d\s+2\&. Files in
72 /etc/
73 are reserved for the local administrator, who may use this logic to override the configuration files installed by vendor packages\&.
74 .PP
75 It is recommended to prefix all filenames with a two\-digit number and a dash to simplify the ordering\&. It is recommended to use the range 10\-40 for configuration files in
76 /usr/
77 and the range 60\-90 for configuration files in
78 /etc/
79 and
80 /run/, to make sure that local and transient configuration files will always take priority over configuration files shipped by the OS vendor\&.
81 .PP
82 If the administrator wants to disable a configuration file supplied by the vendor, the recommended way is to place a symlink to
83 /dev/null
84 in the configuration directory in
85 /etc/, with the same filename as the vendor configuration file\&. If the vendor configuration file is included in the initrd image, the image has to be regenerated\&.
86 .SH "EXAMPLE"
87 .PP
88 \fBExample\ \&1.\ \&/etc/modules\-load\&.d/virtio\-net\&.conf example:\fR
89 .sp
90 .if n \{\
91 .RS 4
92 .\}
93 .nf
94 # Load virtio\-net\&.ko at boot
95 virtio\-net
96 .fi
97 .if n \{\
98 .RE
99 .\}
100 .SH "SEE ALSO"
101 .PP
102 \fBsystemd\fR(1), \fBsystemd-modules-load.service\fR(8), \fBsystemd-delta\fR(1), \fBmodprobe\fR(8)
103 .SH "NOTES"
104 .IP " 1." 4
105 💣💥🧨💥💥💣 Please note that those configuration files must be available at all times. If
106 /usr/local/
107 is a separate partition, it may not be available during early boot, and must not be used for configuration.
108