-Dracut
+dracut
------
-Dracut is a new initramfs infrastructure.
+dracut is a new initramfs infrastructure.
Information about the initial goals and aims can be found at
https://fedoraproject.org/wiki/Initrdrewrite
Most of the functionality that dracut implements are actually implemented
-by dracut modules. Dracut modules live in modules.d, and have the following
+by dracut modules. dracut modules live in modules.d, and have the following
structure:
dracut_install_dir/modules.d/
check():
- Dracut calls this function to check and see if a module can be installed
+ dracut calls this function to check and see if a module can be installed
on the initrd.
When called without options, check should check to make sure that
Future Enhancement Requests
- run ssh server to enter crypto password or perform debugging (supported by debian)
-- https://bugzilla.redhat.com/show_bug.cgi?id=524727 - Dracut + encrypted root + networking
+- https://bugzilla.redhat.com/show_bug.cgi?id=524727 - dracut + encrypted root + networking
[[ $2 ]] || mods_checked_as_dep+=" $_mod "
if strstr " $omit_dracutmodules " " $_mod "; then
- dinfo "Dracut module '$_mod' will not be installed, because it's in the list to be omitted!"
+ dinfo "dracut module '$_mod' will not be installed, because it's in the list to be omitted!"
return 1
fi
force_add_dracutmodules+=" $_moddep "
# if a module we depend on fail, fail also
if ! check_module $_moddep; then
- derror "Dracut module '$_mod' depends on '$_moddep', which can't be installed"
+ derror "dracut module '$_mod' depends on '$_moddep', which can't be installed"
return 1
fi
done
[[ $2 ]] || mods_checked_as_dep+=" $_mod "
if strstr " $omit_dracutmodules " " $_mod "; then
- dinfo "Dracut module '$_mod' will not be installed, because it's in the list to be omitted!"
+ dinfo "dracut module '$_mod' will not be installed, because it's in the list to be omitted!"
return 1
fi
force_add_dracutmodules+=" $_moddep "
# if a module we depend on fail, fail also
if ! check_module $_moddep; then
- derror "Dracut module '$_mod' depends on '$_moddep', which can't be installed"
+ derror "dracut module '$_mod' depends on '$_moddep', which can't be installed"
return 1
fi
done
for _mod in $_modcheck; do
strstr "$mods_to_load" "$_mod" && continue
strstr "$omit_dracutmodules" "$_mod" && continue
- derror "Dracut module '$_mod' cannot be found or installed."
+ derror "dracut module '$_mod' cannot be found or installed."
done
}
if [[ "$_check" = "yes" ]] || ! [[ $DRACUT_KERNEL_LAZY_HASHDIR ]]; then
# We use '-d' option in modprobe only if modules prefix path
- # differs from default '/'. This allows us to use Dracut with
+ # differs from default '/'. This allows us to use dracut with
# old version of modprobe which doesn't have '-d' option.
local _moddirname=${srcmods%%/lib/modules/*}
[[ -n ${_moddirname} ]] && _moddirname="-d ${_moddirname}/"
__DRACUT_LOGGER__=1
-## @brief Logging facility module for Dracut both at build- and boot-time.
+## @brief Logging facility module for dracut both at build- and boot-time.
#
# @section intro Introduction
#
# @see dlog_init()
-## @brief Initializes Dracut Logger.
+## @brief Initializes dracut Logger.
#
# @retval 1 if something has gone wrong
# @retval 0 on success.
[[using-the-dracut-shell]]
==== Using the dracut shell
-Dracut offers a shell for interactive debugging in the event dracut fails to
+dracut offers a shell for interactive debugging in the event dracut fails to
locate your root filesystem. To enable the shell:
. Add the boot parameter ''rd.shell'' to your bootloader configuration file
+
[NOTE]
===============================
-Dracut pipes key to cryptsetup with _-d -_ argument, therefore you need to pipe
+dracut pipes key to cryptsetup with _-d -_ argument, therefore you need to pipe
to crypsetup luksFormat with _-d -_, too!
Here follows example for key encrypted with GPG:
# add_dracutmodules option instead.
#dracutmodules+=""
-# Dracut modules to omit
+# dracut modules to omit
#omit_dracutmodules+=""
-# Dracut modules to add to the default
+# dracut modules to add to the default
#add_dracutmodules+=""
# additional kernel modules to the default
-# Dracut config file customized for RedHat/Fedora.
+# dracut config file customized for RedHat/Fedora.
# i18n
i18n_vars="/etc/sysconfig/keyboard:KEYTABLE-KEYMAP /etc/sysconfig/i18n:SYSFONT-FONT,FONTACM-FONT_MAP,FONT_UNIMAP"
# /etc/dracut.conf.d/gentoo.conf
-# Dracut config file customized for Gentoo Base System release 2
+# dracut config file customized for Gentoo Base System release 2
udevdir=/lib/udev
ro_mnt=yes
%endif
%description
-Dracut contains tools to create a bootable initramfs for 2.6 Linux kernels.
+dracut contains tools to create a bootable initramfs for 2.6 Linux kernels.
Unlike existing implementations, dracut does hard-code as little as possible
-into the initramfs. Dracut contains various modules which are driven by the
+into the initramfs. dracut contains various modules which are driven by the
event-based udev. Having root on MD, DM, LVM2, LUKS is supported as well as
NFS, iSCSI, NBD, FCoE with the dracut-network package.
%package network
-Summary: Dracut modules to build a dracut initramfs with network support
+Summary: dracut modules to build a dracut initramfs with network support
Requires: %{name} = %{version}-%{release}
Obsoletes: dracut-generic < 008
Provides: dracut-generic = %{version}-%{release}
%if 0%{?fedora} || 0%{?rhel} >= 6 || 0%{?suse_version}
%package fips
-Summary: Dracut modules to build a dracut initramfs with an integrity check
+Summary: dracut modules to build a dracut initramfs with an integrity check
Requires: %{name} = %{version}-%{release}
Requires: hmaccalc
%if 0%{?rhel} > 5
%endif
%package fips-aesni
-Summary: Dracut modules to build a dracut initramfs with an integrity check with aesni-intel
+Summary: dracut modules to build a dracut initramfs with an integrity check with aesni-intel
Requires: %{name}-fips = %{version}-%{release}
%description fips-aesni
and adds the aesni-intel kernel module.
%package caps
-Summary: Dracut modules to build a dracut initramfs which drops capabilities
+Summary: dracut modules to build a dracut initramfs which drops capabilities
Requires: %{name} = %{version}-%{release}
Requires: libcap
all purpose initramfs with dracut, which drops capabilities.
%package tools
-Summary: Dracut tools to build the local initramfs
+Summary: dracut tools to build the local initramfs
Requires: %{name} = %{version}-%{release}
%description tools
-Dracut i18n module
+dracut i18n module
------------------
INDEX
i18n and keyboard settings are stored in different files among
distributions. To deal with it avoiding hardcoding those differences in
the installation script we handle it by mappings between variables used
-by Dracut and the ones in the system. Package maintainer is expected to
+by dracut and the ones in the system. Package maintainer is expected to
create those for his/her distribution and it's appreciated to share it
with us, so we can include it in source package.
-Dracut gensplash module
+dracut gensplash module
-----------------------
INDEX
# See systemd.special(7) for details
[Unit]
-Description=Dracut cmdline hook
+Description=dracut cmdline hook
Documentation=man:dracut-cmdline.service(8)
DefaultDependencies=no
Before=dracut-pre-udev.service
# See systemd.special(7) for details
[Unit]
-Description=Dracut initqueue hook
+Description=dracut initqueue hook
Documentation=man:dracut-initqueue.service(8)
DefaultDependencies=no
After=systemd-udev-trigger.service
# See systemd.special(7) for details
[Unit]
-Description=Dracut pre-pivot and cleanup hook
+Description=dracut pre-pivot and cleanup hook
Documentation=man:dracut-pre-pivot.service(8)
DefaultDependencies=no
After=dracut-initqueue.service
# See systemd.special(7) for details
[Unit]
-Description=Dracut pre-trigger hook
+Description=dracut pre-trigger hook
Documentation=man:dracut-pre-trigger.service(8)
DefaultDependencies=no
Before=systemd-udev-trigger.service dracut-initqueue.service
# See systemd.special(7) for details
[Unit]
-Description=Dracut pre-udev hook
+Description=dracut pre-udev hook
Documentation=man:dracut-pre-udev.service(8)
DefaultDependencies=no
Before=systemd-udevd.service dracut-pre-trigger.service
VERSION=""
PRETTY_NAME=""
fi
- NAME=Dracut
+ NAME=dracut
ID=dracut
VERSION+="dracut-$DRACUT_VERSION"
PRETTY_NAME+="dracut-$DRACUT_VERSION (Initramfs)"