Dracut (software)

Software to automate the Linux boot process From Wikipedia, the free encyclopedia

Dracut (software)

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.

Quick Facts Original author(s), Initial release ...
Dracut
Original author(s)Harald Hoyer and others
Initial releaseJuly 2009; 15 years ago (2009-07)
Stable release
106 / 1 February 2025; 2 months ago (2025-02-01)
Repository
Written inC, Bash, Rust
Operating systemLinux
PlatformLinux kernel
TypeInitial_ramdisk
LicenseGPLv2+, LGPLv2+
Websitedracut-ng.github.io
Close

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 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. They live in the modules subdirectory, and use functionality provided by dracut-functions to do their work.[1]

Features

Currently, dracut supports booting from ext2, ext3, ext4, btrfs, iso, ZFS, DM RAID, MD RAID, lvm, device mapper multipath I/O, dm-crypt, CIFS, FCoE, iSCSI, NBD and NFS.

Dracut can be used for live media generation. It has flags for squashfs, and other things like overlay file system.[1]

History

Dracut originated from Fedora Linux sponsored initially by Red Hat in Dec 2008 [2]. 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.[3]

In 2013, the development moved to GitHub from Kernel.org, while a mirror was maintained till 2022 (v56).

As of Oct 2021, after the long time lead developer Harald Hoyer left Red Hat it is a community-managed open source project.

In Mar 29 2024, 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 plan to switch the default initramfs infrastructure from initramfs-tools to dracut.

Adoption

Summarize
Perspective

Distributions that depend on dracut as the default initramfs tool. The list is sorted by the date when dracut became the default for a given distribution.

Most distributions have made the dracut package available to allow replacing the distribution's default initramfs generator. Significant (but incomplete) list of these distributions:

See also

References

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.