'\" t
.\"     Title: dracut.conf
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 08/13/2026
.\"    Manual: dracut
.\"    Source: dracut
.\"  Language: English
.\"
.TH "DRACUT\&.CONF" "5" "08/13/2026" "dracut" "dracut"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
dracut.conf \- configuration file(s) for dracut
.SH "SYNOPSIS"
.sp
\fI/etc/dracut\&.conf\fR \fI/etc/dracut\&.conf\&.d/*\&.conf\fR \fI/usr/lib/dracut/dracut\&.conf\&.d/*\&.conf\fR
.SH "DESCRIPTION"
.sp
\fIdracut\&.conf\fR is loaded during the initialisation phase of dracut\&. Command line parameter will override any values set here\&.
.sp
\fI*\&.conf\fR files are read from /usr/lib/dracut/dracut\&.conf\&.d and /etc/dracut\&.conf\&.d\&. Files with the same name in /etc/dracut\&.conf\&.d will replace files in /usr/lib/dracut/dracut\&.conf\&.d\&. The files are then read in alphanumerical order and will override parameters set in \fI/etc/dracut\&.conf\fR\&. Each line specifies an attribute and a value\&. A \fI#\fR indicates the beginning of a comment; following characters, up to the end of the line are not interpreted\&.
.sp
dracut command line options will override any values set here\&.
.sp
Configuration files must have the extension \&.conf; other extensions are ignored\&.
.PP
\fBadd_dracutmodules+=\fR"\ \&\fI<dracut modules>\fR\ \&"
.RS 4
Add a space\-separated list of dracut modules to call when building the initramfs\&. Modules are located in
\fI/usr/lib/dracut/modules\&.d\fR\&.
.RE
.PP
\fBdracutmodules+=\fR"\ \&\fI<dracut modules>\fR\ \&"
.RS 4
Specify a space\-separated list of dracut modules to call when building the initramfs\&. Modules are located in
\fI/usr/lib/dracut/modules\&.d\fR\&. This option forces dracut to only include the specified dracut modules\&. In most cases the "add_dracutmodules" option is what you want to use\&.
.RE
.PP
\fBomit_dracutmodules+=\fR"\ \&\fI<dracut modules>\fR\ \&"
.RS 4
Omit a space\-separated list of dracut modules to call when building the initramfs\&. Modules are located in
\fI/usr/lib/dracut/modules\&.d\fR\&.
.RE
.PP
\fBdrivers+=\fR"\ \&\fI<kernel modules>\fR\ \&"
.RS 4
Specify a space\-separated list of kernel modules to exclusively include in the initramfs\&. The kernel modules have to be specified without the "\&.ko" suffix\&.
.RE
.PP
\fBadd_drivers+=\fR"\ \&\fI<kernel modules>\fR\ \&"
.RS 4
Specify a space\-separated list of kernel modules to add to the initramfs\&. The kernel modules have to be specified without the "\&.ko" suffix\&.
.RE
.PP
\fBforce_drivers+=\fR"\ \&\fI<list of kernel modules>\fR\ \&"
.RS 4
See add_drivers above\&. But in this case it is ensured that the drivers are tried to be loaded early via modprobe\&.
.RE
.PP
\fBomit_drivers+=\fR"\ \&\fI<kernel modules>\fR\ \&"
.RS 4
Specify a space\-separated list of kernel modules not to add to the initramfs\&. The kernel modules have to be specified without the "\&.ko" suffix\&.
.RE
.PP
\fBfilesystems+=\fR"\ \&\fI<filesystem names>\fR\ \&"
.RS 4
Specify a space\-separated list of kernel filesystem modules to exclusively include in the generic initramfs\&.
.RE
.PP
\fBdrivers_dir=\fR"\fI<kernel modules directory>\fR"
.RS 4
Specify the directory, where to look for kernel modules
.RE
.PP
\fBfw_dir+=\fR"\ \&:\fI<dir>\fR[:\fI<dir>\fR\ \&\&...]\ \&"
.RS 4
Specify additional directories, where to look for firmwares, separated by :
.RE
.PP
\fBinstall_items+=\fR"\ \&\fI<file>\fR[ \fI<file>\fR\ \&\&...]\ \&"
.RS 4
Specify additional files to include in the initramfs, separated by spaces\&.
.RE
.PP
\fBinstall_optional_items+=\fR"\ \&\fI<file>\fR[ \fI<file>\fR\ \&\&...]\ \&"
.RS 4
Specify additional files to include in the initramfs, separated by spaces, if they exist\&.
.RE
.PP
\fBcompress=\fR"\fI{bzip2|lzma|xz|gzip|lzo|lz4|zstd|<compressor [args \&...]>}\fR"
.RS 4
Compress the generated initramfs using the passed compression program\&. If you pass it just the name of a compression program, it will call that program with known\-working arguments\&. If you pass arguments, it will be called with exactly those arguments\&. Depending on what you pass, this may result in an initramfs that the kernel cannot decompress\&.
.RE
.PP
\fBdo_strip=\fR"\fI{yes|no}\fR"
.RS 4
Strip binaries in the initramfs (default=yes)
.RE
.PP
\fBhostonly=\fR"\fI{yes|no}\fR"
.RS 4
Host\-Only mode: Install only what is needed for booting the local host instead of a generic host and generate host\-specific configuration\&.
.RE
.PP
\fBhostonly_cmdline=\fR"\fI{yes|no}\fR"
.RS 4
If set to "yes", store the kernel command line arguments needed in the initramfs
.RE
.PP
\fBpersistent_policy=\fR"\fI<policy>\fR"
.RS 4
Use
\fI<policy>\fR
to address disks and partitions\&.
\fI<policy>\fR
can be any directory name found in /dev/disk\&. E\&.g\&. "by\-uuid", "by\-label"
.RE
.PP
\fBtmpdir=\fR"\fI<temporary directory>\fR"
.RS 4
Specify temporary directory to use\&.
.RE
.if n \{\
.sp
.\}
.RS 4
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.ps +1
\fBWarning\fR
.ps -1
.br
.sp
If chrooted to another root other than the real root device, use \-\-fstab and provide a valid \fI/etc/fstab\fR\&.
.sp .5v
.RE
.PP
\fBuse_fstab=\fR"\fI{yes|no}\fR"
.RS 4
Use
\fI/etc/fstab\fR
instead of
\fI/proc/self/mountinfo\fR\&.
.RE
.PP
\fBadd_fstab+=\fR"\ \&\fI<filename>\fR\ \&"
.RS 4
Add entries of
\fI<filename>\fR
to the initramfs /etc/fstab\&.
.RE
.PP
\fBadd_device+=\fR"\ \&\fI<device>\fR\ \&"
.RS 4
Bring up
\fI<device>\fR
in initramfs,
\fI<device>\fR
should be the device name\&. This can be useful in hostonly mode for resume support when your swap is on LVM an encrypted partition\&.
.RE
.PP
\fBmdadmconf=\fR"\fI{yes|no}\fR"
.RS 4
Include local
\fI/etc/mdadm\&.conf\fR
(default=yes)
.RE
.PP
\fBlvmconf=\fR"\fI{yes|no}\fR"
.RS 4
Include local
\fI/etc/lvm/lvm\&.conf\fR
(default=yes)
.RE
.PP
\fBfscks=\fR"\ \&\fI<fsck tools>\fR\ \&"
.RS 4
Add a space\-separated list of fsck tools\&. If nothing is specified, the default is: "umount mount /sbin/fsck* xfs_db xfs_check xfs_repair e2fsck jfs_fsck reiserfsck btrfsck"\&. The installation is opportunistic (non\-existing tools are ignored)\&.
.RE
.PP
\fBnofscks=\fR"\fI{yes|no}\fR"
.RS 4
If specified, inhibit installation of any fsck tools\&.
.RE
.PP
\fBro_mnt=\fR"\fI{yes|no}\fR"
.RS 4
Mount
\fI/\fR
and
\fI/usr\fR
read\-only by default\&.
.RE
.PP
\fBkernel_cmdline=\fR"\fIparameters\fR"
.RS 4
Specify default kernel command line parameters
.RE
.PP
\fBkernel_only=\fR"\fI{yes|no}\fR"
.RS 4
Only install kernel drivers and firmware files\&. (default=no)
.RE
.PP
\fBno_kernel=\fR"\fI{yes|no}\fR"
.RS 4
Do not install kernel drivers and firmware files (default=no)
.RE
.PP
\fBacpi_override=\fR"\fI{yes|no}\fR"
.RS 4
[WARNING] ONLY USE THIS IF YOU KNOW WHAT YOU ARE DOING!

Override BIOS provided ACPI tables\&. For further documentation read Documentation/acpi/initrd_table_override\&.txt in the kernel sources\&. Search for ACPI table files (must have \&.aml suffix) in acpi_table_dir= directory (see below) and add them to a separate uncompressed cpio archive\&. This cpio archive gets glued (concatenated, uncompressed one must be the first one) to the compressed cpio archive\&. The first, uncompressed cpio archive is for data which the kernel must be able to access very early (and cannot make use of uncompress algorithms yet) like microcode or ACPI tables (default=no)\&.
.RE
.PP
\fBacpi_table_dir=\fR"\fI<dir>\fR"
.RS 4
Directory to search for ACPI tables if acpi_override= is set to yes\&.
.RE
.PP
\fBearly_microcode=\fR"{yes|no}"
.RS 4
Combine early microcode with ramdisk (default=yes)
.RE
.PP
\fBstdloglvl\fR="\fI{0\-6}\fR"
.RS 4
Set logging to standard error level\&.
.RE
.PP
\fBsysloglvl\fR="\fI{0\-6}\fR"
.RS 4
Set logging to syslog level\&.
.RE
.PP
\fBfileloglvl=\fR"\fI{0\-6}\fR"
.RS 4
Set logging to file level\&.
.RE
.PP
\fBlogfile=\fR"\fI<file>\fR"
.RS 4
Path to log file\&.
.RE
.PP
\fBshow_modules=\fR"\fI{yes|no}\fR"
.RS 4
Print the name of the included modules to standard output during build\&.
.RE
.PP
\fBi18n_vars=\fR"\fI<variable mapping>\fR"
.RS 4
Distribution specific variable mapping\&. See dracut/modules\&.d/10i18n/README for a detailed description\&.
.RE
.PP
\fBi18n_default_font=\fR"\fI<fontname>\fR"
.RS 4
The font <fontname> to install, if not specified otherwise\&. Default is "LatArCyrHeb\-16"\&.
.RE
.PP
\fBi18n_install_all=\fR"\fI{yes|no}\fR"
.RS 4
Install everything regardless of generic or hostonly mode\&.
.RE
.PP
\fBreproducible=\fR"\fI{yes|no}\fR"
.RS 4
Create reproducible images\&.
.RE
.PP
\fBloginstall=\fR"\fI<DIR>\fR"
.RS 4
Log all files installed from the host to
\fI<DIR>\fR\&.
.RE
.PP
\fBuefi_stub=\fR"\fI<FILE>\fR"
.RS 4
Specifies the UEFI stub loader, which will load the attached kernel, initramfs and kernel command line and boots the kernel\&. The default is
\fI/lib/systemd/boot/efi/linux<EFI\-MACHINE\-TYPE\-NAME>\&.efi\&.stub\fR
or
\fI/usr/lib/gummiboot/linux<EFI\-MACHINE\-TYPE\-NAME>\&.efi\&.stub\fR
.RE
.PP
\fBkernel_image=\fR"\fI<FILE>\fR"
.RS 4
Specifies the kernel image, which to include in the UEFI executable\&. The default is
\fI/lib/modules/<KERNEL\-VERSION>/vmlinuz\fR
or
\fI/boot/vmlinuz\-<KERNEL\-VERSION>\fR
.RE
.SH "FILES"
.PP
\fI/etc/dracut\&.conf\fR
.RS 4
Old configuration file\&. You better use your own file in
\fI/etc/dracut\&.conf\&.d/\fR\&.
.RE
.PP
\fI/etc/dracut\&.conf\&.d/\fR
.RS 4
Any
\fI/etc/dracut\&.conf\&.d/*\&.conf\fR
file can override the values in
\fI/etc/dracut\&.conf\fR\&. The configuration files are read in alphanumerical order\&.
.RE
.SH "AUTHOR"
.sp
Harald Hoyer
.SH "SEE ALSO"
.sp
\fBdracut\fR(8) \fBdracut\&.cmdline\fR(7)
