Dracut (software)
Software to automate the Linux boot process From Wikipedia, the free encyclopedia
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.
![]() Output of dracut regenerating initramfs | |
Original author(s) | Harald Hoyer and others |
---|---|
Initial release | July 2009 |
Stable release | 106
/ 1 February 2025 |
Repository | |
Written in | C, Bash, Rust |
Operating system | Linux |
Platform | Linux kernel |
Type | Initial_ramdisk |
License | GPLv2+, LGPLv2+ |
Website | dracut-ng |
Unlike existing Linux boot images, the Dracut framework attempts to introduce as little hard-coded logic into the initramfs as possible.[1] The initramfs has essentially one purpose: locating and mounting the real root file system so that the boot process can transition to it.[1] This functionality is dependent on device availability.[1] 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 minimize the time required in initramfs such that, for example, 5-second boots are possible.[1]
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.[1] They live in the modules subdirectory, and use functionality provided by dracut-functions to do their work.[1]
Currently, dracut supports booting from ext2, ext3, ext4, btrfs, ISO_9660, DM RAID, MD RAID, LVM2, device mapper multipath I/O, dm-crypt, cifs, FCoE, iSCSI, NBD and NFS.[2]
Adoption
Red Hat is the original author of dracut. Red Hat-derived Linux distributions use dracut for initramfs creation.
- Fedora Linux since version 12, Constantine[3]
- Red Hat Enterprise Linux since version 6[4]
- openSUSE since version 13.2, when it became the default initramfs creation tool[5]
- SUSE Linux Enterprise Server since version 12
- Void Linux[6]
- OpenMandriva Lx, since it was Mandriva Linux in 2011[7][8]
- Mageia since Mageia 2[9]
- Gentoo for distribution kernels since 2020,[10] for custom kernels possible since 2010[11]
- KaOS
- EndeavourOS
- Azure Linux
- Garuda Linux
- Solus (operating system)
- AOSC OS
- Side Linux
Distributions which include dracut, but do not use it by default for initramfs creation:
- Debian since version 6 (Squeeze)[12]
- Arch Linux in extra repository[13]
- Ubuntu since version 18.04[14]
- Alpine Linux in community repository[15]
Most other distributions have made dracut available as an optional package to replace the distribution's default initramfs generator.
See also
References
External links
Wikiwand - on
Seamless Wikipedia browsing. On steroids.