]> git.ipfire.org Git - thirdparty/dracut.git/blame - dracut.conf.5.asc
dracut_mkdir(): create parent directories as needed.
[thirdparty/dracut.git] / dracut.conf.5.asc
CommitLineData
888d53f2
HH
1DRACUT.CONF(5)
2==============
3:doctype: manpage
4:man source: dracut
5:man manual: dracut
50057af1 6:man version: {version}
888d53f2
HH
7
8NAME
9----
10dracut.conf - configuration file(s) for dracut
11
12SYNOPSIS
13--------
8b52e96f
HH
14_/etc/dracut.conf_
15_/etc/dracut.conf.d/\*.conf_
ef9ddb91 16_/usr/lib/dracut/dracut.conf.d/*.conf_
888d53f2
HH
17
18Description
19-----------
20_dracut.conf_ is loaded during the initialisation phase of dracut. Command line
85c8217d 21parameter will override any values set here.
c4e098a5 22
ef9ddb91
HH
23_*.conf_ files are read from /usr/lib/dracut/dracut.conf.d and
24/etc/dracut.conf.d. Files with the same name in /etc/dracut.conf.d will replace
25files in /usr/lib/dracut/dracut.conf.d.
85c8217d 26The files are then read in alphanumerical order and will override parameters
ef9ddb91 27set in _/etc/dracut.conf_. Each line specifies an attribute and a value. A '#'
888d53f2
HH
28indicates the beginning of a comment; following characters, up to the end of the
29line are not interpreted.
30
85c8217d 31dracut command line options will override any values set here.
c4e098a5
HH
32
33Configuration files must have the extension .conf; other extensions are ignored.
34
319867fa
HH
35*add_dracutmodules+=*" __<dracut modules>__ "::
36 Add a space-separated list of dracut modules to call when building the
37 initramfs. Modules are located in _/usr/lib/dracut/modules.d_.
38
888d53f2
HH
39*dracutmodules+=*" __<dracut modules>__ "::
40 Specify a space-separated list of dracut modules to call when building the
41 initramfs. Modules are located in _/usr/lib/dracut/modules.d_.
319867fa
HH
42 This option forces dracut to only include the specified dracut modules.
43 In most cases the "add_dracutmodules" option is what you want to use.
888d53f2
HH
44
45*omit_dracutmodules+=*" __<dracut modules>__ "::
319867fa
HH
46 Omit a space-separated list of dracut modules to call when building the
47 initramfs. Modules are located in _/usr/lib/dracut/modules.d_.
888d53f2
HH
48
49*drivers+=*" __<kernel modules>__ "::
50 Specify a space-separated list of kernel modules to exclusively include in
51 the initramfs. The kernel modules have to be specified without the ".ko"
52 suffix.
53
54*add_drivers+=*" __<kernel modules>__ "::
55 Specify a space-separated list of kernel modules to add to the initramfs.
56 The kernel modules have to be specified without the ".ko" suffix.
57
cea907f6
TR
58*force_drivers+=*" __<list of kernel modules>__ "::
59 See add_drivers above. But in this case it is ensured that the drivers
60 are tried to be loaded early via modprobe.
61
888d53f2
HH
62*omit_drivers+=*" __<kernel modules>__ "::
63 Specify a space-separated list of kernel modules not to add to the
64 initramfs. The kernel modules have to be specified without the ".ko" suffix.
65
888d53f2
HH
66*filesystems+=*" __<filesystem names>__ "::
67 Specify a space-separated list of kernel filesystem modules to exclusively
68 include in the generic initramfs.
69
70*drivers_dir=*"__<kernel modules directory>__"::
71 Specify the directory, where to look for kernel modules
72
73*fw_dir+=*" :__<dir>__[:__<dir>__ ...] "::
74 Specify additional directories, where to look for firmwares, separated by :
75
76*install_items+=*" __<file>__[ __<file>__ ...] "::
77 Specify additional files to include in the initramfs, separated by spaces.
78
54b68829
HH
79*install_optional_items+=*" __<file>__[ __<file>__ ...] "::
80 Specify additional files to include in the initramfs, separated by spaces,
81 if they exist.
82
7dbadcc7 83*compress=*"__{bzip2|lzma|xz|gzip|lzo|lz4|zstd|<compressor [args ...]>}__"::
8b52e96f
HH
84 Compress the generated initramfs using the passed compression program. If
85 you pass it just the name of a compression program, it will call that
86 program with known-working arguments. If you pass arguments, it will be called
87 with exactly those arguments. Depending on what you pass, this may result in
88 an initramfs that the kernel cannot decompress.
89
888d53f2
HH
90*do_strip=*"__{yes|no}__"::
91 Strip binaries in the initramfs (default=yes)
92
93*hostonly=*"__{yes|no}__"::
1d97bb8b
94 Host-Only mode: Install only what is needed for booting the local host
95 instead of a generic host and generate host-specific configuration.
888d53f2 96
0ad2471c 97*hostonly_cmdline=*"__{yes|no}__"::
76dd870b 98 If set to "yes", store the kernel command line arguments needed in the initramfs
ab9457ef 99
3411ad66
HH
100*persistent_policy=*"__<policy>__"::
101 Use _<policy>_ to address disks and partitions.
102 _<policy>_ can be any directory name found in /dev/disk.
103 E.g. "by-uuid", "by-label"
104
4dd68ca4
105*tmpdir=*"__<temporary directory>__"::
106 Specify temporary directory to use.
107
888d53f2
HH
108[WARNING]
109====
ef9ddb91
HH
110If chrooted to another root other than the real root device, use --fstab and
111provide a valid _/etc/fstab_.
888d53f2
HH
112====
113
114*use_fstab=*"__{yes|no}__"::
115 Use _/etc/fstab_ instead of _/proc/self/mountinfo_.
116
117*add_fstab+=*" __<filename>__ "::
118 Add entries of __<filename>__ to the initramfs /etc/fstab.
119
c586b033
CG
120*add_device+=*" __<device>__ "::
121 Bring up _<device>_ in initramfs, _<device>_ should be the device name.
122 This can be useful in hostonly mode for resume support when your swap is on
123 LVM an encrypted partition.
124
888d53f2
HH
125*mdadmconf=*"__{yes|no}__"::
126 Include local _/etc/mdadm.conf_ (default=yes)
127
128*lvmconf=*"__{yes|no}__"::
129 Include local _/etc/lvm/lvm.conf_ (default=yes)
130
131*fscks=*" __<fsck tools>__ "::
132 Add a space-separated list of fsck tools. If nothing is specified, the
133 default is: "umount mount /sbin/fsck* xfs_db xfs_check xfs_repair e2fsck
134 jfs_fsck reiserfsck btrfsck". The installation is opportunistic
135 (non-existing tools are ignored).
136
137*nofscks=*"__{yes|no}__"::
138 If specified, inhibit installation of any fsck tools.
139
a2b64e30 140*ro_mnt=*"__{yes|no}__"::
ff3953ef
141 Mount _/_ and _/usr_ read-only by default.
142
d20fb951
HH
143*kernel_cmdline=*"__parameters__"::
144 Specify default kernel command line parameters
145
888d53f2
HH
146*kernel_only=*"__{yes|no}__"::
147 Only install kernel drivers and firmware files. (default=no)
148
45845cb6 149*no_kernel=*"__{yes|no}__"::
888d53f2
HH
150 Do not install kernel drivers and firmware files (default=no)
151
45845cb6 152*acpi_override=*"__{yes|no}__"::
4e93c3f7
TR
153 [WARNING] ONLY USE THIS IF YOU KNOW WHAT YOU ARE DOING! +
154 Override BIOS provided ACPI tables. For further documentation read
155 Documentation/acpi/initrd_table_override.txt in the kernel sources.
156 Search for ACPI table files (must have .aml suffix) in acpi_table_dir=
157 directory (see below) and add them to a separate uncompressed cpio
158 archive. This cpio archive gets glued (concatenated, uncompressed one
159 must be the first one) to the compressed cpio archive. The first,
160 uncompressed cpio archive is for data which the kernel must be able
f18d069d 161 to access very early (and cannot make use of uncompress algorithms yet)
4e93c3f7
TR
162 like microcode or ACPI tables (default=no).
163
164*acpi_table_dir=*"__<dir>__"::
165 Directory to search for ACPI tables if acpi_override= is set to yes.
166
b7c770e1 167*early_microcode=*"{yes|no}"::
b25ef46f 168 Combine early microcode with ramdisk (default=yes)
b7c770e1 169
888d53f2
HH
170*stdloglvl*="__\{0-6\}__"::
171 Set logging to standard error level.
172
173*sysloglvl*="__\{0-6\}__"::
174 Set logging to syslog level.
175
176*fileloglvl=*"__\{0-6\}__"::
177 Set logging to file level.
178
179*logfile=*"__<file>__"::
180 Path to log file.
181
182*show_modules=*"__{yes|no}__"::
c4e098a5 183 Print the name of the included modules to standard output during build.
888d53f2 184
472928ec 185*i18n_vars=*"__<variable mapping>__"::
45845cb6
HH
186 Distribution specific variable mapping.
187 See dracut/modules.d/10i18n/README for a detailed description.
188
189*i18n_default_font=*"__<fontname>__"::
ef9ddb91 190 The font <fontname> to install, if not specified otherwise.
42d93d34 191 Default is "eurlatgr".
45845cb6
HH
192
193*i18n_install_all=*"__{yes|no}__"::
194 Install everything regardless of generic or hostonly mode.
195
80626ded
HH
196*reproducible=*"__{yes|no}__"::
197 Create reproducible images.
198
37383f71
HH
199*loginstall=*"__<DIR>__"::
200 Log all files installed from the host to _<DIR>_.
201
636d2d46
HH
202*uefi_stub=*"_<FILE>_"::
203 Specifies the UEFI stub loader, which will load the attached kernel, initramfs and
204 kernel command line and boots the kernel. The default is
205 _/lib/systemd/boot/efi/linux<EFI-MACHINE-TYPE-NAME>.efi.stub_
206 or _/usr/lib/gummiboot/linux<EFI-MACHINE-TYPE-NAME>.efi.stub_
207
4237aeb0
DT
208*uefi_splash_image=*"_<FILE>_"::
209 Specifies the UEFI stub loader's splash image. Requires bitmap (**.bmp**) image format.
210
5a962b59
MR
211*uefi_secureboot_cert=*"_<FILE>_", *uefi_secureboot_key=*"_<FILE>_"::
212 Specifies a certificate and corresponding key, which are used to sign the created UEFI executable.
213 Requires both certificate and key need to be specified and _sbsign_ to be installed.
214
636d2d46
HH
215*kernel_image=*"_<FILE>_"::
216 Specifies the kernel image, which to include in the UEFI executable. The default is
217 _/lib/modules/<KERNEL-VERSION>/vmlinuz_ or _/boot/vmlinuz-<KERNEL-VERSION>_
218
888d53f2
HH
219Files
220-----
221_/etc/dracut.conf_::
222 Old configuration file. You better use your own file in
81b676a6 223 _/etc/dracut.conf.d/_.
888d53f2 224
dece5ee1 225_/etc/dracut.conf.d/_::
85c8217d 226 Any _/etc/dracut.conf.d/*.conf_ file can override the values in
888d53f2
HH
227 _/etc/dracut.conf_. The configuration files are read in alphanumerical
228 order.
229
230AUTHOR
231------
232Harald Hoyer
233
234See Also
235--------
236*dracut*(8) *dracut.cmdline*(7)
237