'\" t .\" Title: dracut-install .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.26 .\" Date: 2026-11-23 .\" Manual: dracut .\" Source: dracut .\" Language: English .\" .TH "DRACUT\-INSTALL" "8" "2026-11-23" "dracut" "dracut" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" dracut-install \- install files or kernel modules into initramfs staging directory .SH "SYNOPSIS" .sp \fBdracut\-install\fP \-D \fIDESTROOTDIR\fP [\-r \fISYSROOTDIR\fP] [\fIOPTION\fP].\|.\|. \-\-all \fISOURCE\fP.\|.\|. .sp \fBdracut\-install\fP \-D \fIDESTROOTDIR\fP [\-r \fISYSROOTDIR\fP] [\fIOPTION\fP].\|.\|. \fISOURCE\fP \fIDEST\fP .sp \fBdracut\-install\fP \-D \fIDESTROOTDIR\fP [\-r \fISYSROOTDIR\fP] [\fIOPTION\fP].\|.\|. \-\-module \fIKERNELMODULE\fP.\|.\|. .SH "DESCRIPTION" .sp \fBdracut\-install\fP installs files or kernel modules from \fIrootfs\fP or \fISYSROOTDIR\fP into an initramfs image being prepared in \fIDESTROOTDIR\fP (the staging directory) as \fIDEST\fP, resolving dependencies for executables and modules. If \fIDEST\fP is not set, use \fISOURCE\fP (relative to \fISYSROOTDIR\fP if applicable). .sp \fIKERNELMODULE\fP can have the formats: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fBabsolute path\fP with a leading \f(CR/\fP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB=[/.\|.\|.]\fP like \f(CR=drivers/hid\fP .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ . sp -1 . IP \(bu 2.3 .\} \fB\fP, e.g. \f(CRext4\fP .RE .sp \fBNote:\fP This is a dracut internal tool, do not expect a stable interface across versions. .SH "OPTIONS" .sp \fB\-D\fP, \fB\-\-destrootdir\fP .RS 4 Install all files to \fIDESTROOTDIR\fP as the root .RE .sp \fB\-r\fP, \fB\-\-sysrootdir\fP .RS 4 Install all files from \fISYSROOTDIR\fP .RE .sp \fB\-a\fP, \fB\-\-all\fP .RS 4 Install all \fISOURCE\fP arguments to \fIDESTROOTDIR\fP .RE .sp \fB\-o\fP, \fB\-\-optional\fP .RS 4 If \fISOURCE\fP or kernel module does not exist, do not fail .RE .sp \fB\-d\fP, \fB\-\-dir\fP .RS 4 \fISOURCE\fP is a directory .RE .sp \fB\-l\fP, \fB\-\-ldd\fP .RS 4 Also install shebang executables and libraries .RE .sp \fB\-L\fP, \fB\-\-logdir\fP \fIDIR\fP .RS 4 Log files which were installed from the host to \fIDIR\fP .RE .sp \fB\-n\fP, \fB\-\-dry\-run\fP .RS 4 Don\(cqt actually copy files, just show what would be installed .RE .sp \fB\-R\fP, \fB\-\-resolvelazy\fP .RS 4 Only install shebang executables and libraries for all \fISOURCE\fP files .RE .sp \fB\-H\fP, \fB\-\-hostonly\fP .RS 4 Mark all \fISOURCE\fP files as hostonly .RE .sp \fB\-f\fP, \fB\-\-fips\fP .RS 4 Also install all \f(CR.SOURCE.hmac\fP files .RE .sp \fB\-\-module\fP, \fB\-m\fP .RS 4 Install kernel modules, instead of files .RE .sp \fB\-\-kerneldir\fP .RS 4 Specify the kernel module directory (default: \f(CR/lib/modules/$(uname \-r)\fP) .RE .sp \fB\-\-firmwaredirs\fP .RS 4 Specify the firmware directory search path with \fB:\fP separation (default: value of the \f(CRDRACUT_FIRMWARE_PATH\fP environment variable if set, otherwise content of \f(CR/sys/module/firmware_class/parameters/path\fP, plus \f(CR/lib/firmware/updates/$(uname \-r)\fP, \f(CR/lib/firmware/updates\fP, \f(CR/lib/firmware/$(uname \-r)\fP, \f(CR/lib/firmware\fP) .RE .sp \fB\-\-silent\fP .RS 4 Don\(cqt display error messages for kernel module install .RE .sp \fB\-\-modalias\fP .RS 4 Only generate module list from \f(CR/sys/devices\fP modalias list .RE .sp \fB\-p\fP, \fB\-\-mod\-filter\-path\fP .RS 4 Filter kernel modules by path regexp .RE .sp \fB\-P\fP, \fB\-\-mod\-filter\-nopath\fP .RS 4 Exclude kernel modules by path regexp .RE .sp \fB\-s\fP, \fB\-\-mod\-filter\-symbol\fP .RS 4 Filter kernel modules by symbol regexp .RE .sp \fB\-S\fP, \fB\-\-mod\-filter\-nosymbol\fP .RS 4 Exclude kernel modules by symbol regexp .RE .sp \fB\-N\fP, \fB\-\-mod\-filter\-noname\fP .RS 4 Exclude kernel modules by name regexp .RE .sp \fB\-\-json\-supported\fP .RS 4 Show whether this build supports JSON .RE .sp \fB\-v\fP, \fB\-\-verbose\fP .RS 4 Show more output .RE .sp \fB\-\-debug\fP .RS 4 Show debug output .RE .sp \fB\-\-version\fP .RS 4 Show package version .RE .sp \fB\-h \-\-help\fP .RS 4 Show help .RE .SH "EXAMPLES" .sp .B Install MD drivers, but exclude bcache and md\-cluster ones .br .sp .if n .RS 4 .nf .fam C dracut\-install \-D $DESTROOTDIR \-\-module \-P ".*/(bcache/|md\-cluster).*" "=drivers/md" .fam .fi .if n .RE .sp .B Install DRM drivers that provide certain symbols .br .sp .if n .RS 4 .nf .fam C dracut\-install \-D $DESTROOTDIR \-\-module \-s "drm_crtc_init|drm_dev_register|drm_encoder_init" "=drivers/gpu/drm" .fam .fi .if n .RE .SH "AVAILABILITY" .sp The dracut\-install command is part of the dracut package and is available from \c .URL "https://github.com/dracut\-ng/dracut" "\c .URL \(dqhttps://github.com/dracut\-ng/dracut\(dq \(dq\(dq " .SH "SEE ALSO" .sp man:dracut[8]