Menu

Tree [e47907] master /
 History

HTTPS access


File Date Author Commit
 dracut.conf.d 2015-02-10 Harald Hoyer Harald Hoyer [38e217] fedora.conf: do not store cmdline in image by d...
 install 2014-09-11 Harald Hoyer Harald Hoyer [37383f] add "--loginstall <DIR>" and loginstall="<DIR>"...
 modules.d 2015-07-13 Harald Hoyer Harald Hoyer [e47907] dracut-systemd/dracut-initqueue: only start ser...
 skipcpio 2015-07-07 Harald Hoyer Harald Hoyer [6318ba] skipcpio/skipcpio.c: linux kernel only accepts ...
 test 2015-07-07 Harald Hoyer Harald Hoyer [7ecb36] TEST-50-MULTINIC/test.sh: correctly call ldconfig
 .dir-locals.el 2014-08-29 Harald Hoyer Harald Hoyer [6770af] add kate and emacs per directory config files
 .gitignore 2013-04-16 Harald Hoyer Harald Hoyer [d0eedc] .gitignore: ignore more files
 .kateconfig 2014-08-29 Harald Hoyer Harald Hoyer [6770af] add kate and emacs per directory config files
 .kateproject 2014-08-29 Harald Hoyer Harald Hoyer [6770af] add kate and emacs per directory config files
 .mailmap 2015-01-08 Harald Hoyer Harald Hoyer [e0dc6c] AUTHORS and .mailmap update
 50-dracut.install 2015-02-09 Dimitri John Ledkov Dimitri John Ledkov [a7d3ad] Support /usr/lib/kernel/cmdline fallback path f...
 51-dracut-rescue-postinst.sh 2014-08-29 Harald Hoyer Harald Hoyer [967cc1] remove all vim and emacs code format comments
 51-dracut-rescue.install 2015-02-09 Dimitri John Ledkov Dimitri John Ledkov [a7d3ad] Support /usr/lib/kernel/cmdline fallback path f...
 AUTHORS 2015-06-09 Harald Hoyer Harald Hoyer [04bf86] NEWS & AUTHORS update - 042
 COPYING 2012-08-01 Harald Hoyer Harald Hoyer [aa11b7] COPYING: updated to recent version of http://ww...
 HACKING 2011-05-10 Harald Hoyer Harald Hoyer [3b403b] removed trailing whitespaces
 Makefile 2015-03-19 Harald Hoyer Harald Hoyer [28eae1] Split the systemd dracut module up
 NEWS 2015-06-15 Harald Hoyer Harald Hoyer [eab035] NEWS: version 043
 PKGBUILD 2011-03-31 Harald Hoyer Harald Hoyer [db5928] PKGBUILD, debian/*: changed URLs to kernel.org
 README 2012-10-10 Harald Hoyer Harald Hoyer [600c87] consistently lowercase "dracut"
 README.generic 2011-05-10 Harald Hoyer Harald Hoyer [3b403b] removed trailing whitespaces
 README.kernel 2010-06-17 Harald Hoyer Harald Hoyer [7d86d9] Version 006
 README.modules 2012-10-10 Harald Hoyer Harald Hoyer [600c87] consistently lowercase "dracut"
 README.testsuite 2015-01-31 Harald Hoyer Harald Hoyer [64a69c] README.testsuite: reformat package list for eas...
 TODO 2015-07-13 Harald Hoyer Harald Hoyer [8c7dc0] TODO: update
 configure 2014-08-29 Harald Hoyer Harald Hoyer [967cc1] remove all vim and emacs code format comments
 dracut-bash-completion.sh 2015-03-19 Harald Hoyer Harald Hoyer [636d2d] dracut.sh: add support for creating a UEFI boot...
 dracut-catimages.8.asc 2012-03-14 Harald Hoyer Harald Hoyer [888d53] replace xml documentation with asciidoc
 dracut-catimages.sh 2014-08-29 Harald Hoyer Harald Hoyer [967cc1] remove all vim and emacs code format comments
 dracut-functions.sh 2015-07-09 Harald Hoyer Harald Hoyer [32de4e] dracut-functions.sh: simplify some for loops
 dracut-init.sh unknown
 dracut-initramfs-restore.sh 2014-12-08 Harald Hoyer Harald Hoyer [25b987] Fixed the dracut-shutdown.service
 dracut-logger.sh 2014-08-29 Harald Hoyer Harald Hoyer [967cc1] remove all vim and emacs code format comments
 dracut.8.asc 2015-06-15 Jan Synacek Jan Synacek [ca9650] doc: fix formatting
 dracut.asc 2014-01-09 Harald Hoyer Harald Hoyer [ef9ddb] documentation: line wrap
 dracut.bootup.7.asc 2014-01-09 Harald Hoyer Harald Hoyer [ef9ddb] documentation: line wrap
 dracut.cmdline.7.asc 2015-07-13 Harald Hoyer Harald Hoyer [df0bdd] network: add rd.peerdns=0 parameter
 dracut.conf 2015-07-09 Harald Hoyer Harald Hoyer [e833e2] dracut.conf: remove example parameters
 dracut.conf.5.asc 2015-06-09 Harald Hoyer Harald Hoyer [8b52e9] dracut.conf.5.asc: document "compress"
 dracut.css 2013-10-08 Harald Hoyer Harald Hoyer [b6c897] Doc: cleanup, extend and split and reuse
 dracut.logrotate 2011-07-20 Harald Hoyer Harald Hoyer [8a2936] dracut.logrotate: remove "yearly"
 dracut.modules.7.asc 2015-02-11 Jan Synacek Jan Synacek [d5e585] doc: fix typo
 dracut.png 2010-12-02 Harald Hoyer Harald Hoyer [7c6eb1] added dracut logo
 dracut.sh 2015-07-09 Harald Hoyer Harald Hoyer [ee44f6] dracut.sh: early check for bash version
 dracut.spec 2015-06-23 Harald Hoyer Harald Hoyer [c42064] dracut.spec: turn requires in recommends
 dracut.svg 2010-12-02 Harald Hoyer Harald Hoyer [7c6eb1] added dracut logo
 dracut.usage.asc 2014-12-11 Thomas Renninger Thomas Renninger [4d2589] dracut.usage.asc: Remove distro specific help f...
 git2spec.pl 2013-04-11 Harald Hoyer Harald Hoyer [5f8cd1] Makefile,git2spec.pl: use "git describe"
 lsinitrd-bash-completion.sh 2014-08-29 Harald Hoyer Harald Hoyer [967cc1] remove all vim and emacs code format comments
 lsinitrd.1.asc 2013-04-16 Harald Hoyer Harald Hoyer [7d9bb7] lsinitrd: switch to getopt and add "-f" and "-k...
 lsinitrd.sh 2015-07-09 Harald Hoyer Harald Hoyer [372163] guard ${arrays[@]} with ""
 mkinitrd-dracut.sh 2013-10-07 Harald Hoyer Harald Hoyer [a3044a] mkinitrd-dracut.sh: removed trailing space in c...
 mkinitrd-suse.8.asc 2014-12-11 Thomas Renninger Thomas Renninger [552c37] mkinitrd-suse: Update to sles12 SUSE state
 mkinitrd-suse.sh 2015-06-26 Thomas Renninger Thomas Renninger [162daf] Use the uncompressed kernel file on arm and aar...
 mkinitrd.8.asc 2014-01-09 Harald Hoyer Harald Hoyer [ef9ddb] documentation: line wrap
 profile.py 2012-06-22 Harald Hoyer Harald Hoyer [28a6ee] profile.py: do not count negative timestamp dif...

Read Me

dracut
------
dracut is a new initramfs infrastructure.

Information about the initial goals and aims can be found at
https://fedoraproject.org/wiki/Initrdrewrite

Unlike existing initramfs's, this is an attempt at having as little as
possible hard-coded into the initramfs as possible.  The initramfs has
(basically) one purpose in life -- getting the rootfs mounted so that
we can transition to the real rootfs.  This is all driven off of
device availability.  Therefore, instead of scripts hard-coded to do
various things, we depend on udev to create device nodes for us and
then when we have the rootfs's device node, we mount and carry on.
This helps to keep the time required in the initramfs as little as
possible so that things like a 5 second boot aren't made impossible as
a result of the very existence of an initramfs.  It's likely that
we'll grow some hooks for running arbitrary commands in the flow of
the script, but it's worth trying to resist the urge as much as we can
as hooks are guaranteed to be the path to slow-down.

Most of the initramfs generation functionality in dracut is provided by a bunch
of generator modules that are sourced by the main dracut script to install
specific functionality into the initramfs.  They live in the modules.d
subdirectory, and use functionality provided by dracut-functions to do their
work.

Some general rules for writing modules:
 * Use one of the inst family of functions to actually install files
   on to the initramfs.  They handle mangling the pathnames and (for binaries,
   scripts, and kernel modules) installing dependencies as appropriate so
   you do not have to.
 * Scripts that end up on the initramfs should be POSIX compliant. dracut
   will try to use /bin/dash as /bin/sh for the initramfs if it is available,
   so you should install it on your system -- dash aims for strict POSIX
   compliance to the extent possible.
 * Hooks MUST be POSIX compliant -- they are sourced by the init script,
   and having a bashism break your user's ability to boot really sucks.
 * Generator modules should have a two digit numeric prefix -- they run in
   ascending sort order. Anything in the 90-99 range is stuff that dracut
   relies on, so try not to break those hooks.
 * Hooks must have a .sh extension.
 * Generator modules are described in more detail in README.modules.
 * We have some breakpoints for debugging your hooks.  If you pass 'rdbreak'
   as a kernel parameter, the initramfs will drop to a shell just before
   switching to a new root. You can pass 'rdbreak=hookpoint', and the initramfs
   will break just before hooks in that hookpoint run.

Also, there is an attempt to keep things as distribution-agnostic as
possible.  Every distribution has their own tool here and it's not
something which is really interesting to have separate across them.
So contributions to help decrease the distro-dependencies are welcome.

Currently dracut lives on kernel.org.

The tarballs can be found here:
	http://www.kernel.org/pub/linux/utils/boot/dracut/
	ftp://ftp.kernel.org/pub/linux/utils/boot/dracut/

Git:
	git://git.kernel.org/pub/scm/boot/dracut/dracut.git
	http://git.kernel.org/pub/scm/boot/dracut/dracut.git
	https://git.kernel.org/pub/scm/boot/dracut/dracut.git

	git://github.com/haraldh/dracut.git

	git://dracut.git.sourceforge.net/gitroot/dracut/dracut

Git Web:
	http://git.kernel.org/?p=boot/dracut/dracut.git

	https://haraldh@github.com/haraldh/dracut.git

	http://dracut.git.sourceforge.net/git/gitweb.cgi?p=dracut/dracut

Git Web RSS Feed:
	http://git.kernel.org/?p=boot/dracut/dracut.git;a=rss

Project Page:
	http://www.kernel.org/pub/linux/utils/boot/dracut/dracut.html

Project Wiki:
	http://dracut.wiki.kernel.org

See the TODO file for things which still need to be done and HACKING for
some instructions on how to get started.  There is also a mailing list
that is being used for the discussion -- initramfs@vger.kernel.org.
It is a typical vger list, send mail to majordomo@vger.kernel.org with body
of 'subscribe initramfs email@host.com'


Licensed under the GPLv2
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.