|Original author(s)||Harald Hoyer and others|
|Initial release||July 2009|
053 / 23 February 2021
|Written in||C, Unix shell|
Dracut is a set of tools that provide enhanced functionality for automating the Linux boot process. The tool named dracut is used to create a Linux boot image (initramfs) by copying tools and files from an installed system and combining it with the Dracut framework, which is usually found in /usr/lib/dracut/modules.d.
Unlike existing Linux boot images, the Dracut framework attempts to introduce as little hard-coded logic into the initramfs as possible. The initramfs has essentially one purpose: locating and mounting the real root file system so that the boot process can transition to it. This functionality is dependent on device availability. Therefore, instead of having hard-coded scripts to determine device availability and suitability, Dracut's initramfs depends on the Linux device manager (udev) to create symbolic links to device nodes. When the root file system's device node appears, Dracut mounts it as the new root file system. This helps to keep the time required in initramfs down so that things like a 5-second boot are now made possible.
Most of the initramfs generation functionality in Dracut is provided by generator modules that are sourced by the main dracut tool to install specific functionality into the initramfs. They live in the modules subdirectory, and use functionality provided by dracut-functions to do their work.
Redhat is the original author of dracut. Redhat-derived distributions use dracut for initramfs creation. Use outside Redhat-derived distributions is limited.
- Fedora since version 12, Constantine
- Red Hat Enterprise Linux since version 6
- openSUSE since version 13.2, when it became the default initramfs creation tool
- SUSE Linux Enterprise Server since version 12
- Void Linux
Distributions which include dracut, but do not use by default for initramfs creation:
- Gentoo since 2010
- Debian since version 6 (Squeeze)
- OpenMandriva Lx, since it was Mandriva Linux in 2011
- Mageia since Mageia 2
- Arch Linux in extra repository
- dracut Wiki, kernel.org, retrieved 2012-10-10
- dracut documentation, kernel.org, retrieved 2012-10-10
- Features/Dracut, FedoraProject, retrieved 2012-10-10
- RHEL6 SRPMS FTP, redhat.com, retrieved 2012-10-10
- openSUSE 13.2 Major features, openSUSE project, retrieved 2014-11-04
- Dracut - Gentoo Wiki, wiki.gentoo.org, retrieved 2012-10-10
- Package: dracut (005-1), debian.org, retrieved 2012-10-10
- dracut-010-6-mdv2011.0.noarch.rpm, pkgs.org, retrieved 2012-10-10
- Mageia App Db, mageia.madb.org, retrieved 2012-10-10
- "Arch Linux - dracut 049-2 (x86_64)". www.archlinux.org. Retrieved 2019-05-21.