'\" t .\" Title: dracut.conf .\" Author: [see the "AUTHOR" section] .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 07/21/2024 .\" Manual: dracut .\" Source: dracut 103 .\" Language: English .\" .TH "DRACUT\&.CONF" "5" "07/21/2024" "dracut 103" "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\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 \fBforce_add_dracutmodules+=\fR"\ \&\fI\fR\ \&" .RS 4 Force to add a space\-separated list of dracut modules to the default set of modules, when host\-only mode is specified\&. This parameter can be specified multiple times\&. .RE .PP \fBomit_dracutmodules+=\fR"\ \&\fI\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 \fBdracutmodules+=\fR"\ \&\fI\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 \fBadd_drivers+=\fR"\ \&\fI\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\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\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 \fBdrivers+=\fR"\ \&\fI\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 \fBfilesystems+=\fR"\ \&\fI\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\fR" .RS 4 Specify the directory where to look for kernel modules\&. .RE .PP \fBfw_dir+=\fR"\ \&:\fI\fR[:\fI\fR\ \&\&...]\ \&" .RS 4 Specify additional colon\-separated list of directories where to look for firmware files\&. .RE .PP \fBlibdirs+=\fR" \fI\fR[ \fI\fR\ \&\&...] " .RS 4 Specify a space\-separated list of directories where to look for libraries\&. .RE .PP \fBinstall_items+=\fR"\ \&\fI\fR[ \fI\fR\ \&\&...]\ \&" .RS 4 Specify additional files to include in the initramfs, separated by spaces\&. .RE .PP \fBinstall_optional_items+=\fR"\ \&\fI\fR[ \fI\fR\ \&\&...]\ \&" .RS 4 Specify additional files to include in the initramfs, separated by spaces, if they exist\&. .RE .PP \fBcompress=\fR"\fI{cat|bzip2|lzma|xz|gzip|lzop|lz4|zstd|}\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\&. To disable compression, use "cat"\&. .RE .PP \fBsquash_compress=\fR"\fI{}\fR" .RS 4 Compress the squashfs image using the passed compressor and compressor specific options for mksquashfs\&. You can refer to mksquashfs manual for supported compressors and compressor specific options\&. If squash module is not called when building the initramfs, this option will not take effect\&. .RE .PP \fBdo_strip=\fR"\fI{yes|no}\fR" .RS 4 Strip binaries in the initramfs (default=yes)\&. .RE .PP \fBaggressive_strip=\fR"\fI{yes|no}\fR" .RS 4 Strip more than just debug symbol and sections, for a smaller initramfs build\&. The "do_strip=yes" option must also be specified (default=no)\&. .RE .PP \fBdo_hardlink=\fR"\fI{yes|no}\fR" .RS 4 Hardlink files in the initramfs (default=yes)\&. .RE .PP \fBprefix=\fR"\ \&\fI\fR\ \&" .RS 4 Prefix initramfs files with \fI\fR\&. .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 (default=no)\&. .RE .PP \fBhostonly_mode=\fR"\fI{sloppy|strict}\fR" .RS 4 Specify the host\-only mode to use (default=sloppy)\&. In "sloppy" host\-only mode, extra drivers and modules will be installed, so minor hardware change won\(cqt make the image unbootable (e\&.g\&. changed keyboard), and the image is still portable among similar hosts\&. With "strict" mode enabled, anything not necessary for booting the local host in its current state will not be included, and modules may do some extra job to save more space\&. Minor change of hardware or environment could make the image unbootable\&. .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\&. If \fBhostonly="yes"\fR and this option is not configured, it\(cqs automatically set to "yes"\&. .RE .PP \fBhostonly_nics+=\fR" [\fI\fR[ \fI\fR\ \&\&...]] " .RS 4 Only enable listed NICs in the initramfs\&. The list can be empty, so other modules can install only the necessary network drivers\&. .RE .PP \fBpersistent_policy=\fR"\fI\fR" .RS 4 Use \fI\fR to address disks and partitions\&. \fI\fR can be any directory name found in /dev/disk (e\&.g\&. "by\-uuid", "by\-label"), or "mapper" to use /dev/mapper device names (default=mapper)\&. .RE .PP \fBtmpdir=\fR"\fI\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 (default=no)\&. .RE .PP \fBadd_fstab+=\fR"\ \&\fI\fR\ \&" .RS 4 Add entries of \fI\fR to the initramfs /etc/fstab\&. .RE .PP \fBadd_device+=\fR"\ \&\fI\fR\ \&" .RS 4 Bring up \fI\fR in initramfs, \fI\fR should be the device name\&. This can be useful in host\-only 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=no)\&. .RE .PP \fBlvmconf=\fR"\fI{yes|no}\fR" .RS 4 Include local \fI/etc/lvm/lvm\&.conf\fR (default=no)\&. .RE .PP \fBfscks=\fR"\ \&\fI\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 (default=no)\&. .RE .PP \fBro_mnt=\fR"\fI{yes|no}\fR" .RS 4 Mount \fI/\fR and \fI/usr\fR read\-only by default (default=no)\&. .RE .PP \fBkernel_cmdline=\fR"\fIparameters\fR" .RS 4 Specify default kernel command line parameters\&. Despite its name, this command only sets initrd 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\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 Specify logging level for standard error (default=4)\&. .RE .if n \{\ .sp .\} .RS 4 .it 1 an-trap .nr an-no-space-flag 1 .nr an-break-flag 1 .br .ps +1 \fBNote\fR .ps -1 .br .sp Logging levels: .sp .if n \{\ .RS 4 .\} .nf 0 \- suppress any messages 1 \- only fatal errors 2 \- all errors 3 \- warnings 4 \- info 5 \- debug info (here starts lots of output) 6 \- trace info (and even more) .fi .if n \{\ .RE .\} .sp .5v .RE .PP \fBsysloglvl\fR="\fI{0\-6}\fR" .RS 4 Specify logging level for syslog (default=0)\&. .RE .PP \fBfileloglvl=\fR"\fI{0\-6}\fR" .RS 4 Specify logging level for logfile (default=4)\&. .RE .PP \fBlogfile=\fR"\fI\fR" .RS 4 Path to logfile\&. .RE .PP \fBsshkey=\fR"\fI\fR" .RS 4 SSH key file used with ssh\-client module\&. .RE .PP \fBshow_modules=\fR"\fI{yes|no}\fR" .RS 4 Print the name of the included modules to standard output during build (default=no)\&. .RE .PP \fBi18n_vars=\fR"\fI\fR" .RS 4 Distribution specific variable mapping\&. See dracut/modules\&.d/10i18n/README for a detailed description\&. .RE .PP \fBi18n_default_font=\fR"\fI\fR" .RS 4 The font to install, if not specified otherwise\&. Default is "eurlatgr"\&. .RE .PP \fBi18n_install_all=\fR"\fI{yes|no}\fR" .RS 4 Install everything regardless of generic or host\-only mode (default=no)\&. .RE .PP \fBreproducible=\fR"\fI{yes|no}\fR" .RS 4 Create reproducible images (default=no)\&. .RE .PP \fBnoimageifnotneeded=\fR"\fI{yes|no}\fR" .RS 4 Do not create an image in host\-only mode, if no kernel driver is needed and no /etc/cmdline/*\&.conf will be generated into the initramfs (default=no)\&. .RE .PP \fBloginstall=\fR"\fI\fR" .RS 4 Log all files installed from the host to \fI\fR\&. .RE .PP \fBuefi=\fR"\fI{yes|no}\fR" .RS 4 Instead of creating an initramfs image, dracut will create an UEFI executable, which can be executed by an UEFI BIOS (default=no)\&. The default output filename is \fI/EFI/Linux/linux\-$kernel$\-\-\&.efi\fR\&. might be \fI/efi\fR, \fI/boot\fR or \fI/boot/efi\fR depending on where the ESP partition is mounted\&. The is taken from BUILD_ID in \fI/usr/lib/os\-release\fR or if it exists \fI/etc/os\-release\fR and is left out, if BUILD_ID is non\-existent or empty\&. .RE .PP \fBmachine_id=\fR"\fI{yes|no}\fR" .RS 4 Affects the default output filename of the UEFI executable, including the part (default=yes)\&. .RE .PP \fBuefi_stub=\fR"\fI\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\&.stub\fR\&. .RE .PP \fBuefi_splash_image=\fR"\fI\fR" .RS 4 Specifies the UEFI stub loader\(cqs splash image\&. Requires bitmap (\fB\&.bmp\fR) image format\&. .RE .PP \fBuefi_secureboot_cert=\fR"\fI\fR", \fBuefi_secureboot_key=\fR"\fI\fR" .RS 4 Specifies a certificate and corresponding key, which are used to sign the created UEFI executable\&. Requires both certificate and key need to be specified and \fIsbsign\fR to be installed\&. .RE .PP \fBuefi_secureboot_engine=\fR"\fIparameter\fR" .RS 4 Specifies an engine to use when signing the created UEFI executable\&. E\&.g\&. "pkcs11" .RE .PP \fBkernel_image=\fR"\fI\fR" .RS 4 Specifies the kernel image, which to include in the UEFI executable\&. The default is \fI/lib/modules//vmlinuz\fR or \fI/boot/vmlinuz\-\fR\&. .RE .PP \fBsbat=\fR"\fIparameters\fR" .RS 4 Specifies the SBAT parameters, which to include in the UEFI executable\&. By default the default SBAT string added is "sbat,1,SBAT Version,sbat,1, \m[blue]\fBhttps://github\&.com/rhboot/shim/blob/main/SBAT\&.md\fR\m[]"\&. .RE .PP \fBenhanced_cpio=\fR"\fI{yes|no}\fR" .RS 4 Attempt to use the dracut\-cpio binary, which optimizes archive creation for copy\-on\-write filesystems (default=no)\&. When specified, initramfs archives are also padded to ensure optimal data alignment for extent sharing\&. To retain reflink data deduplication benefits, this should be used alongside the \fBcompress="cat"\fR and \fBdo_strip="no"\fR parameters, with initramfs source files, \fBtmpdir\fR staging area and destination all on the same copy\-on\-write capable filesystem\&. .RE .PP \fBparallel=\fR"\fI{yes|no}\fR" .RS 4 If set to \fIyes\fR, try to execute tasks in parallel (currently only supported for \fI\-\-regenerate\-all\fR)\&. .RE .PP \fBinitrdname=\fR"\fI\fR" .RS 4 Specifies the file name for the generated initramfs if it is not set otherwise\&. file pattern and only one file with this pattern should exists in the .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)