dracut (software)

dracut is an event-driven initramfs infrastructure. dracut (the tool) is used to create an initramfs image by copying tools and files from an installed system and combining it with the dracut framework, usually found in /usr/lib/dracut/modules.d.

Dracut
Original author(s)Harald Hoyer and others
Initial releaseJuly 2009 (2009-07)
Stable release
048 / 6 July 2018 (2018-07-06)
Repository
Written inC, Unix shell
Operating systemLinux
PlatformLinux kernel
Typeinitramfs
LicenseGPLv2+, LGPLv2+
Websitedracut.wiki.kernel.org

Unlike existing initramfses, dracut's framework attempts to have as little hard-coded into the initramfs as possible.[1] The initramfs has (basically) one purpose—mounting the root file system so the boot process can transition to the real rootfs.[1] This is all driven off of device availability.[1] Therefore, instead of having hard-coded scripts to do various things, dracut's initramfs depends on udev to create symbolic links to device nodes and when the rootfs's device node appears, it mounts it and switches root to it. This helps to keep the time required in initramfs down so that things like a 5-second boot are not made impossible as a result of the very existence of an initramfs.[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 btrfs, DM RAID, MD RAID, LVM2, device mapper multipath I/O, dm-crypt, cifs, FCoE, iSCSI, NBD and NFS.[2]

Dracut-019 (June 2012) introduced the ability to use systemd as process 1 in the initramfs.[3]

Adoption

Redhat is the original author of dracut. Redhat-derived distributions use dracut for initramfs creation. Use outside Redhat-derived distributions is limited.

Distributions which include dracut, but do not use by default for initramfs creation:

See also

References

  1. dracut Wiki, kernel.org, retrieved 2012-10-10
  2. dracut documentation, kernel.org, retrieved 2012-10-10
  3. NEWS file in Github repository, github.com, retrieved 2019-05-21
  4. Features/Dracut, FedoraProject, retrieved 2012-10-10
  5. RHEL6 SRPMS FTP, redhat.com, retrieved 2012-10-10
  6. openSUSE 13.2 Major features, openSUSE project, retrieved 2014-11-04
  7. Dracut - Gentoo Wiki, wiki.gentoo.org, retrieved 2012-10-10
  8. Package: dracut (005-1), debian.org, retrieved 2012-10-10
  9. dracut-010-6-mdv2011.0.noarch.rpm, pkgs.org, retrieved 2012-10-10
  10. Kernel
  11. Mageia App Db, mageia.madb.org, retrieved 2012-10-10
  12. "Arch Linux - dracut 049-2 (x86_64)". www.archlinux.org. Retrieved 2019-05-21.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.