Dracut (software)
Dracut is a set of tools that provide enhanced functionality for automating the Linux boot process. The tool named is used to create a Linux boot image by copying tools and files from an installed system and combining it with the Dracut framework.
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 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 minimize the time required in initramfs such that, for example, 5-second boots are possible.
Most of the initramfs generation functionality in Dracut is provided by generator modules that are sourced by the main 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.
Features
Dracut supports booting from direct attached storage- ext2, ext3, ext4
- XFS, F2FS, jfs
- btrfs
- ZFS
- MD RAID
- Device mapper, dmraid, dm-integrity, dm-verity
- lvm
- device mapper multipath I/O
- LUKS, dm-crypt, eCryptfs
- Virtiofs, Virtfs
- SquashFS, EROFS, iso
- OverlayFS
Dracut supports the following architectures
Dracut can use the following shells
- bash
- dash
- ash
Dracut can be used for live media generation. It has flags for squashfs, and other things like overlay file system.
History
Dracut originated from Fedora Linux sponsored initially by Red Hat in . Dracut is named after the town of Dracut, similar to Wayland and Weston. This follows the tradition of Red Hat naming projects after places near the headquarters of Red Hat in Westford, Massachusetts.In 2013, the development moved to GitHub from Kernel.org, while a was maintained till 2022.
As of Oct 2021, after the long time lead developer Harald Hoyer Red Hat it is a open source project.
In, the project was moved to a new code repository by the core team after the project leader had not been heard from for several months.
In Feb 2025, Ubuntu announced a to switch the default initramfs infrastructure from initramfs-tools to dracut.
Adoption
Distributions that depend on the dracut project for initramfs generation. The list is sorted by the date when dracut became the dependency for generating initramfs by default for a given distribution.- Fedora Linux
- Red Hat Enterprise Linux
- Gentoo
- OpenMandriva Lx, Mageia
- Void Linux
- Solus
- Endless OS,
- openSUSE
- SUSE Linux Enterprise
- ALT Linux
- , Azure Linux
- KaOS
- CRUX
- EndeavourOS, Garuda Linux
- Ubuntu,
- Debian,
- Chimera Linux
Applications
Notable projects using dracut exclusively for initramfs generation*