Blame SOURCES/0025-Doc-cleanup-extend-and-split-and-reuse.patch

712866
From 84fe197facb96947638c518639c0913ecad1599b Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Tue, 8 Oct 2013 14:59:47 +0200
712866
Subject: [PATCH] Doc: cleanup, extend and split and reuse
712866
712866
---
712866
 Makefile             |   8 +-
712866
 dracut.8.asc         |  61 +---
712866
 dracut.asc           | 888 +--------------------------------------------------
712866
 dracut.cmdline.7.asc | 414 ++++++++++++++----------
712866
 dracut.css           | 434 +------------------------
712866
 dracut.modules.7.asc | 293 +++++++++++++++++
712866
 dracut.spec          |   1 +
712866
 dracut.usage.asc     | 526 ++++++++++++++++++++++++++++++
712866
 8 files changed, 1084 insertions(+), 1541 deletions(-)
712866
 create mode 100644 dracut.modules.7.asc
712866
 create mode 100644 dracut.usage.asc
712866
712866
diff --git a/Makefile b/Makefile
712866
index 124a41b..e7da948 100644
712866
--- a/Makefile
712866
+++ b/Makefile
712866
@@ -21,7 +21,8 @@ man1pages = lsinitrd.1
712866
 man5pages = dracut.conf.5
712866
 
712866
 man7pages = dracut.cmdline.7 \
712866
-            dracut.bootup.7
712866
+            dracut.bootup.7 \
712866
+            dracut.modules.7
712866
 
712866
 man8pages = dracut.8 \
712866
             dracut-catimages.8 \
712866
@@ -37,7 +38,6 @@ man8pages = dracut.8 \
712866
 
712866
 manpages = $(man1pages) $(man5pages) $(man7pages) $(man8pages)
712866
 
712866
-
712866
 .PHONY: install clean archive rpm testimage test all check AUTHORS doc dracut-version.sh
712866
 
712866
 all: dracut-version.sh dracut-install
712866
@@ -76,7 +76,9 @@ endif
712866
 %.xml: %.asc
712866
 	asciidoc -d manpage -b docbook -o $@ $<
712866
 
712866
-dracut.html: dracut.asc $(manpages) dracut.css
712866
+dracut.8: dracut.usage.asc dracut.8.asc
712866
+
712866
+dracut.html: dracut.asc $(manpages) dracut.css dracut.usage.asc
712866
 	asciidoc -a numbered -d book -b docbook -o dracut.xml dracut.asc
712866
 	xsltproc -o dracut.html --xinclude -nonet \
712866
 		--stringparam custom.css.source dracut.css \
712866
diff --git a/dracut.8.asc b/dracut.8.asc
712866
index 76fc75c..584514c 100644
712866
--- a/dracut.8.asc
712866
+++ b/dracut.8.asc
712866
@@ -10,7 +10,7 @@ dracut - low-level tool for generating an initramfs image
712866
 
712866
 SYNOPSIS
712866
 --------
712866
-*dracut* ['OPTION...'] [<image> [_<kernel version>_]]
712866
+*dracut* [__OPTION...__] [__<image>__ [__<kernel version>__]]
712866
 
712866
 DESCRIPTION
712866
 -----------
712866
@@ -37,53 +37,10 @@ Additional debugging info can be produced by adding **rd.debug** to the kernel c
712866
 _/run/initramfs/rdsosreport.txt_ contains all logs and the output of some tools.
712866
 It should be attached to any report about dracut problems.
712866
 
712866
-EXAMPLE
712866
--------
712866
-
712866
-To create a initramfs image, the most simple command is:
712866
-----
712866
-# dracut
712866
-----
712866
-
712866
-This will generate a general purpose initramfs image, with all possible
712866
-functionality resulting of the combination of the installed dracut modules and
712866
-system tools. The image is /boot/initramfs-_++<kernel version>++_.img and
712866
-contains the kernel modules of the currently active kernel with version
712866
-_++<kernel version>++_.
712866
-
712866
-If the initramfs image already exists, dracut will display an error message, and
712866
-to overwrite the existing image, you have to use the --force option.
712866
-----
712866
-# dracut --force
712866
-----
712866
-
712866
-If you want to specify another filename for the resulting image you would issue
712866
-a command like:
712866
-----
712866
-# dracut foobar.img
712866
-----
712866
-
712866
-To generate an image for a specific kernel version, the command would be:
712866
-----
712866
-# dracut foobar.img 2.6.40-1.rc5.f20
712866
-----
712866
-
712866
-A shortcut to generate the image at the default location for a specific kernel
712866
-version is:
712866
-----
712866
-# dracut --kver 2.6.40-1.rc5.f20
712866
-----
712866
-
712866
-If you want to create lighter, smaller initramfs images, you may want to specify
712866
-the --hostonly or -H option. Using this option, the resulting image will
712866
-contain only those dracut modules, kernel modules and filesystems, which are
712866
-needed to boot this specific machine. This has the drawback, that you can't put
712866
-the disk on another controller or machine, and that you can't switch to another
712866
-root filesystem, without recreating the initramfs image. The usage of the
712866
---hostonly option is only for experts and you will have to keep the broken
712866
-pieces. At least keep a copy of a general purpose image (and corresponding
712866
-kernel) as a fallback to rescue your system.
712866
+USAGE
712866
+-----
712866
 
712866
+include::dracut.usage.asc[]
712866
 
712866
 OPTIONS
712866
 -------
712866
@@ -337,7 +294,7 @@ provide a valid _/etc/fstab_.
712866
 **-N, --no-hostonly**::
712866
     Disable Host-Only mode
712866
 
712866
-**--persistent-policy** _<policy>_::
712866
+**--persistent-policy** _<policy>_::
712866
     Use _<policy>_ to address disks and partitions.
712866
     _<policy>_ can be any directory name found in /dev/disk.
712866
     E.g. "by-uuid", "by-label"
712866
@@ -345,7 +302,7 @@ provide a valid _/etc/fstab_.
712866
 **--fstab**::
712866
     Use _/etc/fstab_ instead of _/proc/self/mountinfo_.
712866
 
712866
-**--add-fstab** _<filename>_ ::
712866
+**--add-fstab** _<filename>_::
712866
     Add entries of _<filename>_ to the initramfs /etc/fstab.
712866
 
712866
 **--mount** "_<device>_ _<mountpoint>_ _<filesystem type>_ _<filesystem options>_"::
712866
@@ -358,13 +315,13 @@ provide a valid _/etc/fstab_.
712866
     LVM or an encrypted partition.
712866
     [NB --device can be used for compatibility with earlier releases]
712866
 
712866
-**-i, --include** _<SOURCE>_ _<TARGET>_::
712866
+**-i, --include** _<SOURCE>_ _<TARGET>_::
712866
     include the files in the SOURCE directory into the
712866
     TARGET directory in the final initramfs. If SOURCE is a file, it will be
712866
     installed to TARGET in the final initramfs. This parameter can be specified
712866
     multiple times.
712866
 
712866
-**-I, --install** _<file list>_::
712866
+**-I, --install** _<file list>_::
712866
     install the space separated list of files into the initramfs.
712866
 +
712866
 [NOTE]
712866
@@ -481,7 +438,7 @@ _/etc/conf.d/_::
712866
 _/etc/cmdline_::
712866
     Can contain additional command line options. Deprecated, better use /etc/cmdline.d/*.conf.
712866
 
712866
-_/etc/cmdline.d/*.conf::
712866
+_/etc/cmdline.d/*.conf_::
712866
     Can contain additional command line options.
712866
 
712866
 AVAILABILITY
712866
diff --git a/dracut.asc b/dracut.asc
712866
index c011658..031b201 100644
712866
--- a/dracut.asc
712866
+++ b/dracut.asc
712866
@@ -1,7 +1,7 @@
712866
 dracut
712866
 ======
712866
 Harald Hoyer <harald@redhat.com>
712866
-v2.0, March 2011
712866
+v3.0, October 2013
712866
 
712866
 :language: bash
712866
 
712866
@@ -145,885 +145,10 @@ This ensures, that all devices are disassembled and unmounted cleanly.
712866
 
712866
 = User Manual
712866
 
712866
-== Creating an initramfs Image
712866
-To create a initramfs image, the most simple command is:
712866
-----
712866
-# dracut
712866
-----
712866
-
712866
-This will generate a general purpose initramfs image, with all possible
712866
-functionality resulting of the combination of the installed dracut modules and
712866
-system tools. The image is /boot/initramfs-_++<kernel version>++_.img and
712866
-contains the kernel modules of the currently active kernel with version
712866
-_++<kernel version>++_.
712866
-
712866
-If the initramfs image already exists, dracut will display an error message, and
712866
-to overwrite the existing image, you have to use the --force option.
712866
-----
712866
-# dracut --force
712866
-----
712866
-
712866
-If you want to specify another filename for the resulting image you would issue
712866
-a command like:
712866
-----
712866
-# dracut foobar.img
712866
-----
712866
-
712866
-To generate an image for a specific kernel version, the command would be:
712866
-----
712866
-# dracut foobar.img 2.6.40-1.rc5.f20
712866
-----
712866
-
712866
-A shortcut to generate the image at the default location for a specific kernel
712866
-version is:
712866
-----
712866
-# dracut --kver 2.6.40-1.rc5.f20
712866
-----
712866
-
712866
-If you want to create lighter, smaller initramfs images, you may want to specify
712866
-the --host-only or -H option. Using this option, the resulting image will
712866
-contain only those dracut modules, kernel modules and filesystems, which are
712866
-needed to boot this specific machine. This has the drawback, that you can't put
712866
-the disk on another controller or machine, and that you can't switch to another
712866
-root filesystem, without recreating the initramfs image. The usage of the
712866
---host-only option is only for experts and you will have to keep the broken
712866
-pieces. At least keep a copy of a general purpose image (and corresponding
712866
-kernel) as a fallback to rescue your system.
712866
-
712866
-=== Inspecting the Contents
712866
-To see the contents of the image created by dracut, you can use the lsinitrd tool.
712866
-----
712866
-# lsinitrd /boot/initramfs-$(uname -r).img | less
712866
-----
712866
-
712866
-To display the contents of a file in the initramfs also use the lsinitrd tool:
712866
-----
712866
-# lsinitrd /boot/initramfs-$(uname -r).img  /etc/ld.so.conf
712866
-include ld.so.conf.d/*.conf
712866
-----
712866
-
712866
-=== Adding dracut Modules
712866
-Some dracut modules are turned off by default and have to be activated manually.
712866
-You can do this by adding the dracut modules to the configuration file
712866
-_/etc/dracut.conf_ or _/etc/dracut.conf.d/myconf.conf_. See <<dracutconf5>>.
712866
-You can also add dracut modules on the command line
712866
-by using the -a or --add option:
712866
-----
712866
-# dracut --add bootchart initramfs-bootchart.img
712866
-----
712866
-
712866
-To see a list of available dracut modules, use the --list-modules option:
712866
-----
712866
-# dracut --list-modules
712866
-----
712866
-
712866
-or, if you have a dracut version earlier than +008+, issue the command:
712866
-----
712866
-# for mod in /usr/lib/dracut/modules.d/*; do echo ${mod##*/??}; done
712866
-----
712866
-
712866
-=== Omitting dracut Modules
712866
-Sometimes you don't want a dracut module to be included for reasons of speed,
712866
-size or functionality. To do this, either specify the omit_dracutmodules
712866
-variable in the _dracut.conf_ or _/etc/dracut.conf.d/myconf.conf_ configuration
712866
-file (see <<dracutconf5>>), or use the -o or --omit option
712866
-on the command line:
712866
-----
712866
-# dracut -o "multipath lvm" no-multipath-lvm.img
712866
-----
712866
-
712866
-=== Adding Kernel Modules
712866
-If you need a special kernel module in the initramfs, which is not
712866
-automatically picked up by dracut, you have the use the --add-drivers option
712866
-on the command line or  the drivers vaiable in  the _/etc/dracut.conf_
712866
-or _/etc/dracut.conf.d/myconf.conf_ configuration file (see <<dracutconf5>>):
712866
-----
712866
-# dracut --add-drivers mymod initramfs-with-mymod.img
712866
-----
712866
-
712866
-== Boot parameters
712866
-The generated initramfs.img file normally does not contain any system
712866
-configuration files (except for some special exceptions), so the configuration
712866
-has to be done on the kernel command line. With this flexibility, you can easily
712866
-boot from a changed root partition, without the need to recompile the initramfs
712866
-image. So, you could completly change your root partition (move it inside a md
712866
-raid with encryption and LVM on top), as long as you specify the correct
712866
-filesystem LABEL or UUID on the kernel command line for your root device, dracut
712866
-will find it and boot from it.
712866
-
712866
-The kernel command line usually can be configured in _/boot/grub/grub.conf_, if
712866
-grub is your bootloader and it also can be edited in the real boot process in
712866
-the grub menu.
712866
-
712866
-The kernel command line can also be provided by the dhcp server with the
712866
-root-path option. See <<NetworkBoot>>.
712866
-
712866
-For a full reference of all kernel command line parameters, see <<dracut8>>.
712866
-
712866
-=== Specifying the root Device
712866
-This is the only option dracut really needs to boot from your root partition.
712866
-Because your root partition can live in various environments, there are a lot of
712866
-formats for the root= option. The most basic one is root=_++
712866
-node>++_:
712866
-----
712866
-root=/dev/sda2
712866
-----
712866
-
712866
-Because device node names can change, dependent on the drive ordering, you are
712866
-encouraged to use the filesystem identifier (UUID) or filesystem label (LABEL)
712866
-to specify your root partition:
712866
-----
712866
-root=UUID=19e9dda3-5a38-484d-a9b0-fa6b067d0331
712866
-----
712866
-
712866
-or
712866
-
712866
-----
712866
-root=LABEL=myrootpartitionlabel
712866
-----
712866
-
712866
-To see all UUIDs or LABELs on your system, do:
712866
-----
712866
-# ls -l /dev/disk/by-uuid
712866
-----
712866
-
712866
-or
712866
-
712866
-----
712866
-# ls -l /dev/disk/by-label
712866
-----
712866
-
712866
-If your root partition is on the network see <<NetworkBoot>>.
712866
-
712866
-=== Keyboard Settings
712866
-If you have to input passwords for encrypted disk volumes, you might want to set
712866
-the keyboard layout and specify a display font.
712866
-
712866
-A typical german kernel command would contain:
712866
-----
712866
-vconsole.font=latarcyrheb-sun16 vconsole.keymap=de-latin1-nodeadkeys locale.LANG=de_DE.UTF-8
712866
-----
712866
-
712866
-Setting these options can override the setting stored on your system, if you use
712866
-a modern init system, like systemd.
712866
-
712866
-For dracut versions prior to version +008+ the line would look like:
712866
-----
712866
-LANG=de_DE.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=de-latin1-nodeadkeys
712866
-----
712866
-
712866
-=== Blacklisting Kernel Modules
712866
-Sometimes it is required to prevent the automatic kernel module loading of a
712866
-specific kernel module. To do this, just add rd.blacklist=_++
712866
-name>++_, with _++<kernel module name>++_ not containing the _.ko_
712866
-suffix, to the kernel command line. For example:
712866
-----
712866
-rd.driver.blacklist=mptsas rd.driver.blacklist=nouveau
712866
-----
712866
-
712866
-The option can be specified multiple times on the kernel command line.
712866
-
712866
-=== Speeding up the Boot Process
712866
-If you want to speed up the boot process, you can specify as much information
712866
-for dracut on the kernel command as possible. For example, you can tell dracut,
712866
-that you root partition is not on a LVM volume or not on a raid partition, or
712866
-that it lives inside a specific crypto LUKS encrypted volume. By default, dracut
712866
-searches everywhere. A typical dracut kernel command line for a plain primary or
712866
-logical partition would contain:
712866
-----
712866
-rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0
712866
-----
712866
-
712866
-On systems with dracut version prior to +008+ the line would look like:
712866
-----
712866
-rd_NO_LUKS rd_NO_LVM rd_NO_MD rd_NO_DM
712866
-----
712866
-
712866
-This turns off every automatic assembly of LVM, MD raids, DM raids and crypto LUKS.
712866
-
712866
-Of course, you could also omit the dracut modules in the initramfs creation
712866
-process, but then you would lose the posibility to turn it on on demand.
712866
-
712866
-
712866
-[[Injecting]]
712866
-=== Injecting custom Files
712866
-To add your own files to the initramfs image, you have several possibilities.
712866
-
712866
-The --include option let you specify a source path and a target path. For example
712866
-----
712866
-# dracut --include cmdline-preset /etc/cmdline.d/mycmdline.conf initramfs-cmdline-pre.img
712866
-----
712866
-will create an initramfs image, where the file cmdline-preset will be copied
712866
-inside the initramfs to _/etc/cmdline.d/mycmdline.conf_. --include can only be specified once.
712866
-
712866
-
712866
-----
712866
-# mkdir rd.live.overlay
712866
-# mkdir rd.live.overlay/etc
712866
-# mkdir rd.live.overlay/etc/conf.d
712866
-# mkdir rd.live.overlay/etc/cmdline.d
712866
-# echo "ip=auto" >> rd.live.overlay/etc/cmdline.d/mycmdline.conf
712866
-# echo export FOO=testtest >> rd.live.overlay/etc/conf.d/testvar.conf
712866
-# echo export BAR=testtest >> rd.live.overlay/etc/conf.d/testvar.conf
712866
-# tree rd.live.overlay/
712866
-rd.live.overlay/
712866
-└── etc
712866
-    ├── cmdline.d
712866
-        │   └── mycmdline.conf
712866
-	    └── conf.d
712866
-	            └── testvar.conf
712866
-
712866
-# dracut --include rd.live.overlay / initramfs-rd.live.overlay.img
712866
-----
712866
-
712866
-This will put the contents of the rd.live.overlay directory into the root of the
712866
-initramfs image.
712866
-
712866
-The --install option let you specify several files, which will get installed in
712866
-the initramfs image at the same location, as they are present on initramfs
712866
-creation time.
712866
-
712866
-
712866
-----
712866
-# dracut --install 'strace fsck.ext3 ssh' initramfs-dbg.img
712866
-----
712866
-
712866
-This will create an initramfs with the strace, fsck.ext3 and ssh executables,
712866
-together with the libraries needed to start those. The --install option can be
712866
-specified multiple times.
712866
-
712866
-
712866
-[[NetworkBoot]]
712866
-== Network Boot
712866
-
712866
-If your root partition is on a network drive, you have to have the network
712866
-dracut modules installed to create a network aware initramfs image.
712866
-
712866
-On a Red Hat Enterprise Linux or Fedora system, this means, you have to install
712866
-the _dracut-network_ rpm package:
712866
-
712866
-
712866
-----
712866
-# yum install dracut-network
712866
-----
712866
-
712866
-The resulting initramfs image can be served by a boot manager residing on your
712866
-local hard drive or it can be served by a PXE/TFTP server.
712866
-
712866
-How to setup your PXE/TFTP server can be found in the
712866
-http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/[Red
712866
-Hat Enterprise Linux Storage Administration Guide].
712866
-
712866
-If you specify ip=auto on the kernel command line, then dracut asks a dhcp
712866
-server about the ip adress for the machine. The dhcp server can also serve an
712866
-additional root-path, which will set the root device for dracut. With this
712866
-mechanism, you have static configuration on your client machine and a
712866
-centralized boot configuration on your TFTP/DHCP server. If you can't pass a
712866
-kernel command line, then you can inject _/etc/cmdline.d/mycmdline.conf_, with a method described
712866
-in <<Injecting>>.
712866
-
712866
-
712866
-
712866
-
712866
-=== Reducing the Image Size
712866
-
712866
-To reduce the size of the initramfs, you should create it with by ommitting all
712866
-dracut modules, which you know, you don't need to boot the machine.
712866
-
712866
-You can also specify the exact dracut and kernel modules to produce a very tiny
712866
-initramfs image.
712866
-
712866
-For example for a NFS image, you would do:
712866
-
712866
-
712866
-----
712866
-# dracut -m "nfs network  base" initramfs-nfs-only.img
712866
-----
712866
-
712866
-Then you would boot from this image with your target machine and reduce the size
712866
-once more by creating it on the target machine with the --host-only option:
712866
-
712866
-
712866
-----
712866
-# dracut -m "nfs network base" --host-only initramfs-nfs-host-only.img
712866
-----
712866
-
712866
-This will reduce the size of the initramfs image significantly.
712866
-
712866
-
712866
-
712866
-=== NFS Root Device
712866
-
712866
-FIXME
712866
-
712866
-=== iSCSI Root Device
712866
-
712866
-FIXME 
712866
-
712866
-=== FCoE Root Device
712866
-
712866
-FIXME
712866
-
712866
-== Troubleshooting
712866
-
712866
-If the boot process does not succeed, you have several options to debug the
712866
-situation. Some of the basic operations are covered here. For more information
712866
-you should also visit:
712866
-http://fedoraproject.org/wiki/How_to_debug_Dracut_problems
712866
-
712866
-
712866
-[[identifying-your-problem-area]]
712866
-=== Identifying your problem area
712866
-. Remove ''rhgb'' and ''quiet'' from the kernel command line
712866
-. Add ''rd.shell'' to the kernel command line. This will present a shell should
712866
-dracut be unable to locate your root device
712866
-. Add ''rd.shell rd.debug log_buf_len=1M'' to the kernel command line so that
712866
-dracut shell commands are printed as they are executed
712866
-. With dracut >= 002-11, you can inspect the rd.debug output with:
712866
-+
712866
-----
712866
-# less /run/initramfs/init.log
712866
-# dmesg | less
712866
-----
712866
-. With dracut >= 022 and systemd, you can inspect the rd.debug output with:
712866
-----
712866
-# journalctl -ab
712866
-----
712866
-. With dracut >= 025 the file /run/initramfs/rdsosreport.txt is generated, which contains all the logs and the output of all significant tools, which are mentioned later.
712866
-
712866
-If you want to save that output, simply mount /boot by hand or insert an USB stick and mount that.
712866
-Then you can store the output for later inspection.
712866
-
712866
-[[information-to-include-in-your-report]]
712866
-=== Information to include in your report
712866
-
712866
-[[all-bug-reports]]
712866
-==== All bug reports
712866
-In all cases, the following should be mentioned and attached to your bug report:
712866
-
712866
-* The exact kernel command-line used. Typically from the bootloader
712866
-configuration file (e.g. _/etc/grub.conf_) or from _/proc/cmdline_.
712866
-* A copy of your disk partition information from _/etc/fstab_, which might be
712866
-obtained booting an old working initramfs or a rescue medium.
712866
-* A device listing from device-mapper. This can be obtained by running the
712866
-command
712866
-+
712866
-----
712866
-# dmsetup ls --tree
712866
-----
712866
-+
712866
-* A list of block device attributes. This can be obtained by running the commands: 
712866
-+
712866
-----
712866
-# blkid -p
712866
-# blkid -p -o udev
712866
-----
712866
-* Turn on dracut debugging (see _the 'debugging dracut' section_), and attach
712866
-all relevant information from the boot log. This can be obtained by running the
712866
-command 
712866
-+
712866
-----
712866
-# dmesg|grep dracut
712866
-----
712866
-+
712866
-* If you use a dracut configuration file, please include _/etc/dracut.conf_ and
712866
-all files in _/etc/dracut.conf.d/*.conf_
712866
-
712866
-[[logical-volume-management-related-problems]]
712866
-==== Logical Volume Management related problems
712866
-As well as the information from <<all-bug-reports>> include the following
712866
-information:
712866
-
712866
-* Include physical volume information by running the command:
712866
-+
712866
-----
712866
-# lvm pvdisplay
712866
-----
712866
-+
712866
-* Include volume group information by running the command:
712866
-+
712866
-----
712866
-# lvm vgdisplay
712866
-----
712866
-+
712866
-* Include logical volume information by running the command:
712866
-+
712866
-----
712866
-# lvm lvdisplay
712866
-----
712866
-
712866
-[[software-raid-related-problems]]
712866
-==== Software RAID related problems
712866
-As well as the information from <<all-bug-reports>>, include the following
712866
-information:
712866
-
712866
-* If using software RAID disk partitions, please include the output of
712866
-+
712866
-----
712866
-# cat /proc/mdstat
712866
-----
712866
-
712866
-[[network-root-device-related-problems]]
712866
-==== Network root device related problems
712866
-This section details information to include when experiencing problems on a
712866
-system whose root device is located on a network attached volume (e.g. iSCSI,
712866
-NFS or NBD). As well as the information from <<all-bug-reports>>, include the
712866
-following information:
712866
-
712866
-
712866
-* Please include the output of
712866
-+
712866
-----
712866
-# /sbin/ifup <interfacename>
712866
-# ip addr show
712866
-----
712866
-
712866
-[[debugging-dracut]]
712866
-=== Debugging dracut
712866
-
712866
-
712866
-[[configure-a-serial-console]]
712866
-==== Configure a serial console
712866
-
712866
-Successfully debugging dracut will require some form of console
712866
-logging during the system boot.  This section documents configuring a
712866
-serial console connection to record boot messages.
712866
-
712866
-. First, enable serial console output for both the kernel and the bootloader.
712866
-. Open the file _/etc/grub.conf_ for editing. Below the line ''timeout=5'', add
712866
-the following:
712866
-+
712866
-----
712866
-serial --unit=0 --speed=9600
712866
-terminal --timeout=5 serial console
712866
-----
712866
-+
712866
-. Also in _/etc/grub.conf_, add the following boot arguemnts to the ''kernel''
712866
-line:
712866
-+
712866
-----
712866
-console=tty0 console=ttyS0,9600
712866
-----
712866
-+
712866
-. When finished, the _/etc/grub.conf_ file should look similar to the example
712866
-below.
712866
-+
712866
-----
712866
-default=0
712866
-timeout=5
712866
-serial --unit=0 --speed=9600
712866
-terminal --timeout=5 serial console
712866
-title Fedora (2.6.29.5-191.fc11.x86_64)
712866
-  root (hd0,0)
712866
-  kernel /vmlinuz-2.6.29.5-191.fc11.x86_64 ro root=/dev/mapper/vg_uc1-lv_root console=tty0 console=ttyS0,9600
712866
-  initrd /dracut-2.6.29.5-191.fc11.x86_64.img
712866
-----
712866
-+
712866
-. More detailed information on how to configure the kernel for console output
712866
-can be found at
712866
-http://www.faqs.org/docs/Linux-HOWTO/Remote-Serial-Console-HOWTO.html#CONFIGURE-KERNEL.
712866
-. Redirecting non-interactive output
712866
-+
712866
---
712866
-NOTE: You can redirect all non-interactive output to _/dev/kmsg_ and the kernel
712866
-will put it out on the console when it reaches the kernel buffer by doing
712866
-
712866
-----
712866
-# exec >/dev/kmsg 2>&1 
712866
-----
712866
---
712866
-
712866
-[[using-the-dracut-shell]]
712866
-==== Using the dracut shell
712866
-
712866
-dracut offers a shell for interactive debugging in the event dracut fails to
712866
-locate your root filesystem. To enable the shell:
712866
-
712866
-. Add the boot parameter ''rd.shell'' to your bootloader configuration file
712866
-(e.g. _/etc/grub.conf_)
712866
-. Remove the boot arguments ''rhgb'' and ''quiet''
712866
-+
712866
-A sample _/etc/grub.conf_ bootloader configuration file is listed below.
712866
-+
712866
-----
712866
-default=0
712866
-timeout=5
712866
-serial --unit=0 --speed=9600
712866
-terminal --timeout=5 serial console
712866
-title Fedora (2.6.29.5-191.fc11.x86_64)
712866
-  root (hd0,0)
712866
-  kernel /vmlinuz-2.6.29.5-191.fc11.x86_64 ro root=/dev/mapper/vg_uc1-lv_root console=tty0 rd.shell
712866
-  initrd /dracut-2.6.29.5-191.fc11.x86_64.img
712866
-----
712866
-+
712866
-. If system boot fails, you will be dropped into a shell as seen in the example below.
712866
-+
712866
-----
712866
-No root device found
712866
-Dropping to debug shell.
712866
-
712866
-#
712866
-----
712866
-+
712866
-. Use this shell prompt to gather the information requested above (see <<all-bug-reports>>).
712866
-
712866
-[[accessing-the-root-volume-from-the-dracut-shell]]
712866
-==== Accessing the root volume from the dracut shell
712866
-From the dracut debug shell, you can manually perform the task of locating and
712866
-preparing your root volume for boot. The required steps will depend on how your
712866
-root volume is configured. Common scenarios include:
712866
-
712866
-* A block device (e.g. _/dev/sda7_)
712866
-* A LVM logical volume (e.g. _/dev/VolGroup00/LogVol00_)
712866
-* An encrypted device (e.g. _/dev/mapper/luks-4d5972ea-901c-4584-bd75-1da802417d83_)
712866
-* A network attached device (e.g. netroot=iscsi:@192.168.0.4::3260::iqn.2009-02.org.fedoraproject:for.all)
712866
-
712866
-The exact method for locating and preparing will vary. However, to continue with
712866
-a successful boot, the objective is to locate your root volume and create a
712866
-symlink _/dev/root_ which points to the file system. For example, the following
712866
-example demonstrates accessing and booting a root volume that is an encrypted
712866
-LVM Logical volume.
712866
-
712866
-. Inspect your partitions using parted
712866
-+
712866
-----
712866
-# parted /dev/sda -s p
712866
-Model: ATA HTS541060G9AT00 (scsi)
712866
-Disk /dev/sda: 60.0GB
712866
-Sector size (logical/physical): 512B/512B
712866
-Partition Table: msdos
712866
-Number  Start   End     Size    Type      File system  Flags
712866
-1      32.3kB  10.8GB  107MB   primary   ext4         boot
712866
-2      10.8GB  55.6GB  44.7GB  logical                lvm
712866
-----
712866
-+
712866
-. You recall that your root volume was a LVM logical volume. Scan and activate
712866
-any logical volumes.
712866
-+
712866
-----
712866
-# lvm vgscan
712866
-# lvm vgchange -ay
712866
-----
712866
-+
712866
-. You should see any logical volumes now using the command blkid:
712866
-+
712866
-----
712866
-# blkid
712866
-/dev/sda1: UUID="3de247f3-5de4-4a44-afc5-1fe179750cf7" TYPE="ext4"
712866
-/dev/sda2: UUID="Ek4dQw-cOtq-5MJu-OGRF-xz5k-O2l8-wdDj0I" TYPE="LVM2_member"
712866
-/dev/mapper/linux-root: UUID="def0269e-424b-4752-acf3-1077bf96ad2c" TYPE="crypto_LUKS"
712866
-/dev/mapper/linux-home: UUID="c69127c1-f153-4ea2-b58e-4cbfa9257c5e" TYPE="ext3"
712866
-/dev/mapper/linux-swap: UUID="47b4d329-975c-4c08-b218-f9c9bf3635f1" TYPE="swap"
712866
-----
712866
-+
712866
-. From the output above, you recall that your root volume exists on an encrypted
712866
-block device. Following the guidance disk encryption guidance from the
712866
-Installation Guide, you unlock your encrypted root volume.
712866
-+
712866
-----
712866
-# UUID=$(cryptsetup luksUUID /dev/mapper/linux-root)
712866
-# cryptsetup luksOpen /dev/mapper/linux-root luks-$UUID
712866
-Enter passphrase for /dev/mapper/linux-root:
712866
-Key slot 0 unlocked.
712866
-----
712866
-+
712866
-. Next, make a symbolic link to the unlocked root volume
712866
-+
712866
-----
712866
-# ln -s /dev/mapper/luks-$UUID /dev/root
712866
-----
712866
-+
712866
-. With the root volume available, you may continue booting the system by exiting
712866
-the dracut shell
712866
-+
712866
-----
712866
-# exit
712866
-----
712866
-
712866
-[[additional-dracut-boot-parameters]]
712866
-==== Additional dracut boot parameters
712866
-For more debugging options, see <<dracutkerneldebug>> in <<dracutcmdline7>>.
712866
-
712866
-
712866
-[[debugging-dracut-on-shutdown]]
712866
-==== Debugging dracut on shutdown
712866
-
712866
-To debug the shutdown sequence on systemd systems, you can _rd.break_
712866
-on _pre-shutdown_ or _shutdown_.
712866
-
712866
-To do this from an already booted system:
712866
-----
712866
-# mkdir -p /run/initramfs/etc/cmdline.d
712866
-# echo "rd.break=pre-shutdown" > /run/initramfs/etc/cmdline.d/debug.conf
712866
-# touch /run/initramfs/.need_shutdown
712866
-----
712866
-
712866
-This will give you a dracut shell after the system pivot'ed back in the initramfs.
712866
-
712866
-
712866
-= Developer Manual
712866
-
712866
-== dracut Components
712866
-
712866
-dracut uses a modular system to build and extend the initramfs image. All
712866
-modules are located in _/usr/lib/dracut/modules.d_ or in _<git-src>/modules.d_.
712866
-The most basic dracut module is _99base_. In _99base_ the initial shell script
712866
-init is defined, which gets run by the kernel after initramfs loading. Although
712866
-you can replace init with your own version of _99base_, this is not encouraged.
712866
-Instead you should use, if possible, the hooks of dracut. All hooks, and the
712866
-point of time in which they are executed, are described in <<stages>>.
712866
-
712866
-The main script, which creates the initramfs is dracut itsself. It parses all
712866
-arguments and sets up the directory, in which everything is installed. It then
712866
-executes all check, install, installkernel scripts found in the modules, which
712866
-are to be processed. After everything is installed, the install directory is
712866
-archived and compressed to the final initramfs image. All helper functions used
712866
-by check, install and installkernel are found in in the file _dracut-functions_.
712866
-These shell functions are available to all module installer (install,
712866
-installkernel) scripts, without the need to source _dracut-functions_.
712866
-
712866
-A module can check the preconditions for install and installkernel with the
712866
-check script. Also dependencies can be expressed with check. If a module passed
712866
-check, install and installkernel will be called to install all of the necessary
712866
-files for the module. To split between kernel and non-kernel parts of the
712866
-installation, all kernel module related parts have to be in installkernel. All
712866
-other files found in a module directory are module specific and mostly are hook
712866
-scripts and udev rules.
712866
-
712866
-
712866
-[[stages]]
712866
-== Boot Process Stages
712866
-
712866
-dracut modules can insert custom script at various points, to control the boot
712866
-process.
712866
-These hooks are plain directories containing shell scripts ending with ".sh",
712866
-which are sourced by init.
712866
-Common used functions are in _dracut-lib.sh_, which can be sourced by any script.
712866
-
712866
-=== Hook: cmdline
712866
-
712866
-The _cmdline_ hook is a place to insert scripts to parse the kernel command line
712866
-and prepare the later actions, like setting up udev rules and configuration
712866
-files.
712866
-
712866
-In this hook the most important environment variable is defined: root. The
712866
-second one is rootok, which indicates, that a module claimed to be able to parse
712866
-the root defined. So for example, **root=**__iscsi:....__ will be claimed by the
712866
-iscsi dracut module, which then sets rootok.
712866
-
712866
-=== Hook: pre-udev
712866
-
712866
-This hook is executed right after the cmdline hook and a check if root and
712866
-rootok were set. Here modules can take action with the final root, and before
712866
-udev has been run.
712866
-
712866
-=== Start Udev
712866
-
712866
-Now udev is started and the logging for udev is setup.
712866
-
712866
-=== Hook: pre-trigger
712866
-
712866
-In this hook, you can set udev environment variables with **udevadm control
712866
---property=KEY=_value_** or control the further execution of udev with
712866
-udevadm.
712866
-
712866
-=== Trigger Udev
712866
-
712866
-udev is triggered by calling udevadm trigger, which sends add events for all
712866
-devices and subsystems.
712866
-
712866
-=== Main Loop
712866
-
712866
-In the main loop of dracut loops until udev has settled and
712866
-all scripts in _initqueue/finished_ returned true.
712866
-In this loop there are three hooks, where scripts can be inserted
712866
-by calling /sbin/initqueue.
712866
-
712866
-==== Initqueue
712866
-
712866
-This hook gets executed every time a script is inserted here, regardless of the
712866
-udev state.
712866
-
712866
-==== Initqueue settled
712866
-
712866
-This hooks (initqueue/settled) gets executed every time udev has settled.
712866
-
712866
-
712866
-==== Initqueue timeout
712866
-
712866
-This hooks (initqueue/timeout) gets executed, when the main loop counter becomes half of the
712866
-rd.retry counter.
712866
-
712866
-==== Initqueue finished
712866
-
712866
-This hook (initqueue/finished) is called after udev has settled and
712866
-if all scripts herein return 0 the main loop will be ended.
712866
-Abritary scripts can be added here, to loop in the
712866
-initqueue until something happens, which a dracut module wants to wait for.
712866
-
712866
-=== Hook: pre-mount
712866
-
712866
-Before the root device is mounted all scripts in the hook pre-mount are
712866
-executed. In some cases (e.g. NFS) the real root device is already mounted,
712866
-though.
712866
-
712866
-=== Hook: mount
712866
-
712866
-This hook is mainly to mount the real root device.
712866
-
712866
-=== Hook: pre-pivot
712866
-
712866
-This hook is called before cleanup hook, This is a good place for
712866
-actions other than cleanups which need to be called before pivot.
712866
-
712866
-=== Hook: cleanup
712866
-
712866
-This hook is the last hook and is called before init finally switches root to
712866
-the real root device. This is a good place to clean up and kill processes not
712866
-needed anymore.
712866
-
712866
-
712866
-=== Cleanup and switch_root
712866
-
712866
-Init (or systemd) kills all udev processes, cleans up the environment,
712866
-sets up the arguments for the real init process and finally calls switch_root.
712866
-switch_root removes the whole filesystem hierarchy of the initramfs,
712866
-chroot()s to the real root device and calls /sbin/init with the specified arguments.
712866
-
712866
-To ensure all files in the initramfs hierarchy can be removed, all processes
712866
-still running from the initramfs should not have any open file descriptors left.
712866
-
712866
-== Network Infrastructure
712866
-
712866
-FIXME
712866
-
712866
-== Writing a Module
712866
-
712866
-A simple example module is _96insmodpost_, which modprobes a kernel module after
712866
-udev has settled and the basic device drivers have been loaded.
712866
-
712866
-All module installation information is in the file module-setup.sh.
712866
-
712866
-First we create a check() function, which just exits with 0 indicating that this
712866
-module should be included by default.
712866
-
712866
-check():
712866
-----
712866
-return 0
712866
-----
712866
-
712866
-The we create the install() function, which installs a cmdline hook with
712866
-priority number 20 called _parse-insmodpost.sh_. It also installs the
712866
-_insmodpost.sh_ script in _/sbin_.
712866
-
712866
-install():
712866
-----
712866
-inst_hook cmdline 20 "$moddir/parse-insmodpost.sh"
712866
-inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
712866
-----
712866
-
712866
-The _pase-instmodpost.sh_ parses the kernel command line for a argument
712866
-rd.driver.post, blacklists the module from being autoloaded and installs the
712866
-hook _insmodpost.sh_ in the _initqueue/settled_.
712866
-
712866
-_parse-insmodpost.sh_:
712866
-----
712866
-for p in $(getargs rd.driver.post=); do
712866
-    echo "blacklist $p" >> /etc/modprobe.d/initramfsblacklist.conf
712866
-    _do_insmodpost=1
712866
-done
712866
-
712866
-[ -n "$_do_insmodpost" ] && /sbin/initqueue --settled --unique --onetime /sbin/insmodpost.sh
712866
-unset _do_insmodpost
712866
-
712866
-----
712866
-
712866
-_insmodpost.sh_, which is called in the _initqueue/settled_ hook will just
712866
-modprobe the kernel modules specified in all rd.driver.post kernel command line
712866
-parameters. It runs after udev has settled and is only called once (--onetime).
712866
-
712866
-_insmodpost.sh_:
712866
-----
712866
-. /lib/dracut-lib.sh
712866
-
712866
-for p in $(getargs rd.driver.post=); do
712866
-    modprobe $p
712866
-done
712866
-
712866
-----
712866
-
712866
-
712866
-
712866
-=== check()
712866
-
712866
-_check()_ is called by dracut to evaluate the inclusion of a dracut module in
712866
-the initramfs.
712866
-
712866
-$hostonly:: If the $hostonly variable is set, then the module check() function
712866
-should be in "hostonly" mode, which means, that the check() should only return
712866
-0, if the module is really needed to boot this specific host.
712866
-
712866
-check() should return with:
712866
-
712866
-0:: Include the dracut module in the initramfs.
712866
-
712866
-1:: Do not include the dracut module. The requirements are not fullfilled
712866
-(missing tools, etc.)
712866
-
712866
-255:: Only include the dracut module, if another module requires it or if
712866
-explicitly specified in the config file or on the argument list.
712866
-
712866
-
712866
-
712866
-=== depends()
712866
-
712866
-The function depends() should echo all other dracut module names the module
712866
-depends on.
712866
-
712866
-
712866
-
712866
-=== install()
712866
-
712866
-inst_multiple
712866
-
712866
-inst
712866
-
712866
-inst_hook
712866
-
712866
-inst_rules
712866
-
712866
-
712866
-
712866
-
712866
-
712866
-=== installkernel()
712866
-
712866
-instmods
712866
-
712866
-
712866
-
712866
-=== Creation Functions
712866
-
712866
-FIXME
712866
-
712866
-
712866
-=== Initramfs Functions
712866
-
712866
-FIXME
712866
-
712866
-
712866
-=== Network Modules
712866
-
712866
-FIXME
712866
-
712866
 :leveloffset: 1
712866
-[[dracutbootup7]]
712866
-include::dracut.bootup.7.asc[]
712866
-
712866
-:leveloffset: 1
712866
-[[dracut8]]
712866
 include::dracut.8.asc[]
712866
 
712866
+:leveloffset: 1
712866
 [[dracutconf5]]
712866
 include::dracut.conf.5.asc[]
712866
 
712866
@@ -1036,6 +161,15 @@ include::lsinitrd.1.asc[]
712866
 [[mkinitrd8]]
712866
 include::mkinitrd.8.asc[]
712866
 
712866
+= Developer Manual
712866
+
712866
+:leveloffset: 1
712866
+[[dracutmodules7]]
712866
+include::dracut.modules.7.asc[]
712866
+
712866
+[[dracutbootup7]]
712866
+include::dracut.bootup.7.asc[]
712866
+
712866
 :leveloffset: 0
712866
 [appendix]
712866
 License
712866
diff --git a/dracut.cmdline.7.asc b/dracut.cmdline.7.asc
712866
index 4b2ab03..19bfb93 100644
712866
--- a/dracut.cmdline.7.asc
712866
+++ b/dracut.cmdline.7.asc
712866
@@ -31,16 +31,16 @@ line is the value, which is honored.
712866
 
712866
 Standard
712866
 ~~~~~~~~
712866
-**init=**_<path to real init>_::
712866
+**init=**__<path to real init>__::
712866
     specify the path to the init programm to be started after the initramfs has
712866
     finished
712866
 
712866
-**root=**_<path to blockdevice>_::
712866
+**root=**__<path to blockdevice>__::
712866
     specify the block device to use as the root filesystem.
712866
 +
712866
-E.g.:
712866
-+
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 root=/dev/sda1
712866
 root=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0-part1
712866
 root=/dev/disk/by-label/Root
712866
@@ -48,15 +48,17 @@ root=LABEL=Root
712866
 root=/dev/disk/by-uuid/3f5ad593-4546-4a94-a374-bcfb68aa11f7
712866
 root=UUID=3f5ad593-4546-4a94-a374-bcfb68aa11f7
712866
 root=PARTUUID=3f5ad593-4546-4a94-a374-bcfb68aa11f7
712866
-----
712866
+--
712866
 
712866
-**rootfstype=**_<filesystem type>_:: "auto" if not specified, e.g.:
712866
+**rootfstype=**__<filesystem type>__:: "auto" if not specified.
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 rootfstype=ext3
712866
-----
712866
+--
712866
 
712866
-**rootflags=**_<mount options>_::
712866
+**rootflags=**__<mount options>__::
712866
     specify additional mount options for the root filesystem. If not set,
712866
     _/etc/fstab_ of the real root will be parsed for special mount options and
712866
     mounted accordingly.
712866
@@ -69,7 +71,7 @@ rootfstype=ext3
712866
     force mounting _/_ and _/usr_ (if it is a separate device) read-write.
712866
     See also ro option.
712866
 
712866
-**rootfallback=**_<path to blockdevice>_::
712866
+**rootfallback=**__<path to blockdevice>__::
712866
     specify the block device to use as the root filesystem, if the normal root cannot be found.
712866
     This can only be a simple block device with a simple file system, for which the filesystem
712866
     driver is either compiled in, or added manually to the initramfs.
712866
@@ -83,16 +85,16 @@ rootfstype=ext3
712866
     do not honor special mount options for the root filesystem found in
712866
     _/etc/fstab_ of the real root.
712866
 
712866
-**resume=**_<path to resume partition>_::
712866
+**resume=**__<path to resume partition>__::
712866
     resume from a swap partition
712866
 +
712866
-E.g.:
712866
-+
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 resume=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0-part1
712866
 resume=/dev/disk/by-uuid/3f5ad593-4546-4a94-a374-bcfb68aa11f7
712866
 resume=UUID=3f5ad593-4546-4a94-a374-bcfb68aa11f7
712866
-----
712866
+--
712866
 
712866
 **rd.skipfsck**::
712866
     skip fsck for rootfs and _/usr_.  If you're mounting _/usr_ read-only and
712866
@@ -102,19 +104,19 @@ resume=UUID=3f5ad593-4546-4a94-a374-bcfb68aa11f7
712866
 
712866
 Misc
712866
 ~~~~
712866
-**rd.driver.blacklist=**_<drivername>[,<drivername>,...]_::
712866
+**rd.driver.blacklist=**__<drivername>__[,__<drivername>__,...]::
712866
     do not load kernel module <drivername>. This parameter can be specified
712866
     multiple times.
712866
 
712866
-**rd.driver.pre=**_<drivername>[,<drivername>,...]_::
712866
+**rd.driver.pre=**__<drivername>__[,__<drivername>__,...]::
712866
     force loading kernel module <drivername>. This parameter can be specified
712866
     multiple times.
712866
 
712866
-**rd.driver.post=**_<drivername>[,<drivername>,...]_::
712866
+**rd.driver.post=**__<drivername>__[,__<drivername>__,...]::
712866
     force loading kernel module <drivername> after all automatic loading modules
712866
     have been loaded. This parameter can be specified multiple times.
712866
 
712866
-**rd.retry=**_<seconds>_::
712866
+**rd.retry=**__<seconds>__::
712866
     specify how long dracut should wait for devices to appear.
712866
     The default is 30 seconds. After 2/3 of the time, degraded raids are force
712866
     started. If you have hardware, which takes a very long time to announce its
712866
@@ -123,7 +125,7 @@ Misc
712866
 **rd.noverifyssl**::
712866
     accept self-signed certificates for ssl downloads.
712866
 
712866
-**rd.ctty=**_<terminal device>_**::
712866
+**rd.ctty=**__<terminal device>__::
712866
    specify the controlling terminal for the console.
712866
    This is useful, if you have multiple "console=" arguments.
712866
 
712866
@@ -150,17 +152,20 @@ It should be attached to any report about dracut problems.
712866
     If "quiet" is set, it also logs to the console.
712866
 
712866
 **rd.memdebug=[0-3]**::
712866
-    Print memory usage info at various points, set the verbose level from 0 to 3
712866
+    Print memory usage info at various points, set the verbose level from 0 to 3. +
712866
     Higher level means more debugging output:
712866
++
712866
+----
712866
     0 - no output
712866
     1 - partial /proc/meminfo
712866
     2 - /proc/meminfo
712866
     3 - /proc/meminfo + /proc/slabinfo
712866
+----
712866
 
712866
 **rd.break**::
712866
     drop to a shell at the end
712866
 
712866
-**rd.break=**_{cmdline|pre-udev|pre-trigger|initqueue|pre-mount|mount|pre-pivot|cleanup}_::
712866
+**rd.break=**__{cmdline|pre-udev|pre-trigger|initqueue|pre-mount|mount|pre-pivot|cleanup}__::
712866
     drop to a shell on defined breakpoint
712866
 
712866
 **rd.udev.info**::
712866
@@ -171,50 +176,56 @@ It should be attached to any report about dracut problems.
712866
 
712866
 I18N
712866
 ~~~~
712866
-**vconsole.keymap=**_<keymap base file name>_::
712866
+**rd.vconsole.keymap=**__<keymap base file name>__::
712866
     keyboard translation table loaded by loadkeys; taken from keymaps directory;
712866
-    will be written as KEYMAP to _/etc/vconsole.conf_ in the initramfs, e.g.:
712866
+    will be written as KEYMAP to _/etc/vconsole.conf_ in the initramfs.
712866
 +
712866
-----
712866
-vconsole.keymap=de-latin1-nodeadkeys
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
+rd.vconsole.keymap=de-latin1-nodeadkeys
712866
+--
712866
 
712866
-**vconsole.keymap.ext=**_<list of keymap base file names>_::
712866
+**rd.vconsole.keymap.ext=**__<list of keymap base file names>__::
712866
     list of extra keymaps to bo loaded (sep. by space); will be written as
712866
     EXT_KEYMAP to _/etc/vconsole.conf_ in the initramfs
712866
 
712866
-**vconsole.unicode**[=_{0|1}_]::
712866
+**rd.vconsole.unicode**::
712866
     boolean, indicating UTF-8 mode; will be written as UNICODE to
712866
     _/etc/vconsole.conf_ in the initramfs
712866
 
712866
-**vconsole.font=**_<font base file name>_::
712866
+**rd.vconsole.font=**__<font base file name>__::
712866
     console font; taken from consolefonts directory; will be written as FONT to
712866
-    _/etc/vconsole.conf_ in the initramfs; e.g.:
712866
+    _/etc/vconsole.conf_ in the initramfs.
712866
 +
712866
-----
712866
-vconsole.font=LatArCyrHeb-16
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
+rd.vconsole.font=LatArCyrHeb-16
712866
+--
712866
 
712866
-**vconsole.font.map=**_<console map base file name>_::
712866
+**rd.vconsole.font.map=**__<console map base file name>__::
712866
     see description of '-m' parameter in setfont manual; taken from consoletrans
712866
     directory; will be written as FONT_MAP to _/etc/vconsole.conf_ in the
712866
     initramfs
712866
 
712866
-**vconsole.font.unimap=**_<unicode table base file name>_::
712866
+**rd.vconsole.font.unimap=**__<unicode table base file name>__::
712866
     see description of '-u' parameter in setfont manual; taken from unimaps
712866
     directory; will be written as FONT_UNIMAP to _/etc/vconsole.conf_ in the
712866
     initramfs
712866
 
712866
-**locale.LANG=**_<locale>_::
712866
+**rd.locale.LANG=**__<locale>__::
712866
     taken from the environment; if no UNICODE is defined we set its value in
712866
     basis of LANG value (whether it ends with ".utf8" (or similar) or not); will
712866
-    be written as LANG to _/etc/locale.conf_ in the initramfs; e.g.:
712866
+    be written as LANG to _/etc/locale.conf_ in the initramfs.
712866
 +
712866
-----
712866
-locale.LANG=pl_PL.utf8
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
+rd.locale.LANG=pl_PL.utf8
712866
+--
712866
 
712866
-**locale.LC_ALL=**_<locale>_::
712866
+**rd.locale.LC_ALL=**__<locale>__::
712866
     taken from the environment; will be written as LC_ALL to _/etc/locale.conf_
712866
     in the initramfs
712866
 
712866
@@ -223,11 +234,11 @@ LVM
712866
 **rd.lvm=0**::
712866
     disable LVM detection
712866
 
712866
-**rd.lvm.vg=**_<volume group name>_::
712866
+**rd.lvm.vg=**__<volume group name>__::
712866
     only activate the volume groups with the given name. rd.lvm.vg can be
712866
     specified multiple times on the kernel command line.
712866
 
712866
-**rd.lvm.lv=**_<logical volume name>_::
712866
+**rd.lvm.lv=**__<logical volume name>__::
712866
     only activate the logical volumes with the given name. rd.lvm.lv can be
712866
     specified multiple times on the kernel command line.
712866
 
712866
@@ -239,14 +250,14 @@ crypto LUKS
712866
 **rd.luks=0**::
712866
     disable crypto LUKS detection
712866
 
712866
-**rd.luks.uuid=**_<luks uuid>_::
712866
+**rd.luks.uuid=**__<luks uuid>__::
712866
     only activate the LUKS partitions with the given UUID. Any "luks-" of the
712866
     LUKS UUID is removed before comparing to _<luks uuid>_.
712866
     The comparisons also matches, if _<luks uuid>_ is only the beginning of the
712866
     LUKS UUID, so you don't have to specify the full UUID.
712866
     This parameter can be specified multiple times.
712866
 
712866
-**rd.luks.allow-discards=**_<luks uuid>_::
712866
+**rd.luks.allow-discards=**__<luks uuid>__::
712866
     Allow  using  of discards (TRIM) requests for LUKS partitions with the given UUID.
712866
     Any "luks-" of the LUKS UUID is removed before comparing to _<luks uuid>_.
712866
     The comparisons also matches, if _<luks uuid>_ is only the beginning of the
712866
@@ -261,16 +272,18 @@ crypto LUKS
712866
 
712866
 crypto LUKS - key on removable device support
712866
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
712866
-**rd.luks.key=**_<keypath>:<keydev>:<luksdev>_::
712866
+**rd.luks.key=**__<keypath>__:__<keydev>__:__<luksdev>__::
712866
     _keypath_ is a path to key file to look for. It's REQUIRED. When _keypath_ ends with '.gpg' it's considered to be key encrypted symmetrically with GPG. You will be prompted for password on boot. GPG support comes with 'crypt-gpg' module which needs to be added explicitly.
712866
 +
712866
 _keydev_ is a device on which key file resides. It might be kernel name of devices (should start with "/dev/"), UUID (prefixed with "UUID=") or label (prefix with "LABEL="). You don't have to specify full UUID. Just its beginning will suffice, even if its ambiguous. All matching devices will be probed. This parameter is recommended, but not required. If not present, all block devices will be probed, which may significantly increase boot time.
712866
 +
712866
 If _luksdev_ is given, the specified key will only be applied for that LUKS device. Possible values are the same as for _keydev_. Unless you have several LUKS devices, you don't have to specify this parameter. The simplest usage is:
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 rd.luks.key=/foo/bar.key
712866
-----
712866
+--
712866
 +
712866
 As you see, you can skip colons in such a case.
712866
 +
712866
@@ -281,20 +294,20 @@ to crypsetup luksFormat with _-d -_, too!
712866
 
712866
 Here follows example for key encrypted with GPG:
712866
 
712866
-----
712866
-gpg --quiet --decrypt rootkey.gpg \
712866
-| cryptsetup -d - -v \
712866
---cipher serpent-cbc-essiv:sha256 \
712866
+[listing]
712866
+--
712866
+gpg --quiet --decrypt rootkey.gpg | \
712866
+cryptsetup -d - -v --cipher serpent-cbc-essiv:sha256 \
712866
 --key-size 256 luksFormat /dev/sda3
712866
-----
712866
+--
712866
 
712866
 If you use plain keys, just add path to _-d_ option:
712866
 
712866
-----
712866
-cryptsetup -d rootkey.key -v \
712866
---cipher serpent-cbc-essiv:sha256 \
712866
---key-size 256 luksFormat /dev/sda3
712866
-----
712866
+[listing]
712866
+--
712866
+cryptsetup -d rootkey.key -v --cipher serpent-cbc-essiv:sha256 \
712866
+ --key-size 256 luksFormat /dev/sda3
712866
+--
712866
 ===============================
712866
 
712866
 MD RAID
712866
@@ -314,7 +327,7 @@ MD RAID
712866
 **rd.md.waitclean=1**::
712866
     wait for any resync, recovery, or reshape activity to finish before continuing
712866
 
712866
-**rd.md.uuid=**_<md raid uuid>_::
712866
+**rd.md.uuid=**__<md raid uuid>__::
712866
     only activate the raid sets with the given UUID. This parameter can be
712866
     specified multiple times.
712866
 
712866
@@ -323,7 +336,7 @@ DM RAID
712866
 **rd.dm=0**::
712866
     disable DM RAID detection
712866
 
712866
-**rd.dm.uuid=**_<dm raid uuid>_::
712866
+**rd.dm.uuid=**__<dm raid uuid>__::
712866
    only activate the raid sets with the given UUID. This parameter can be
712866
    specified multiple times.
712866
 
712866
@@ -332,15 +345,17 @@ FIPS
712866
 **rd.fips**::
712866
     enable FIPS
712866
 
712866
-**boot=**_<boot device>_::
712866
-    specify the device, where /boot is located. e.g.
712866
+**boot=**__<boot device>__::
712866
+    specify the device, where /boot is located.
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 boot=/dev/sda1
712866
 boot=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:1:0-part1
712866
 boot=UUID=<uuid>
712866
 boot=LABEL=<label>
712866
-----
712866
+--
712866
 
712866
 **rd.fips.skipkernel**::
712866
     skip checksum check of the kernel image. Useful, if the kernel image is not
712866
@@ -348,7 +363,66 @@ boot=LABEL=<label>
712866
 
712866
 Network
712866
 ~~~~~~~
712866
-**ip=**_{dhcp|on|any|dhcp6|auto6|ibft}_::
712866
+
712866
+[IMPORTANT]
712866
+=====================
712866
+It is recommended to either bind an interface to a MAC with the **ifname** argument,
712866
+or to use the systemd-udevd predictable network interface names.
712866
+
712866
+Predictable network interface device names based on:
712866
+
712866
+- firmware/bios-provided index numbers for on-board devices
712866
+- firmware-provided pci-express hotplug slot index number
712866
+- physical/geographical location of the hardware
712866
+- the interface's MAC address
712866
+
712866
+See: http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames
712866
+
712866
+Two character prefixes based on the type of interface:
712866
+
712866
+en:: ethernet
712866
+wl:: wlan
712866
+ww:: wwan
712866
+
712866
+Type of names:
712866
+
712866
+o<index>:: on-board device index number
712866
+s<slot>[f<function>][d<dev_id>]:: hotplug slot index number
712866
+x<MAC>:: MAC address
712866
+[P<domain>]p<bus>s<slot>[f<function>][d<dev_id>]:: PCI geographical location
712866
+[P<domain>]p<bus>s<slot>[f<function>][u<port>][..][c<config>][i<interface>]:: USB port number chain
712866
+
712866
+All multi-function PCI devices will carry the [f<function>] number in the
712866
+device name, including the function 0 device.
712866
+
712866
+When using PCI geography, The PCI domain is only prepended when it is not 0.
712866
+
712866
+For USB devices the full chain of port numbers of hubs is composed. If the
712866
+name gets longer than the maximum number of 15 characters, the name is not
712866
+exported.
712866
+The usual USB configuration == 1 and interface == 0 values are suppressed.
712866
+
712866
+PCI ethernet card with firmware index "1"::
712866
+* eno1
712866
+
712866
+PCI ethernet card in hotplug slot with firmware index number::
712866
+* ens1
712866
+
712866
+PCI ethernet multi-function card with 2 ports::
712866
+* enp2s0f0
712866
+* enp2s0f1
712866
+
712866
+PCI wlan card::
712866
+* wlp3s0
712866
+
712866
+USB built-in 3G modem::
712866
+* wwp0s29u1u4i6
712866
+
712866
+USB Android phone::
712866
+* enp0s29u1u2
712866
+=====================
712866
+
712866
+**ip=**__{dhcp|on|any|dhcp6|auto6|ibft}__::
712866
     dhcp|on|any::: get ip from dhcp server from all interfaces. If root=dhcp, loop
712866
     sequentially through all interfaces (eth0, eth1, ...) and use the first with
712866
     a valid DHCP root-path.
712866
@@ -359,7 +433,7 @@ Network
712866
 
712866
     ibft::: iBFT autoconfiguration
712866
 
712866
-**ip=**_<interface>_:_{dhcp|on|any|dhcp6|auto6}_[:[_<mtu>_][:_<macaddr>_]]::
712866
+**ip=**__<interface>__:__{dhcp|on|any|dhcp6|auto6}__[:[__<mtu>__][:__<macaddr>__]]::
712866
     This parameter can be specified multiple times.
712866
 +
712866
 =====================
712866
@@ -370,16 +444,7 @@ cannot be used in conjunction with the **ifname** argument for the
712866
 same <interface>.
712866
 =====================
712866
 
712866
-[IMPORTANT]
712866
-=====================
712866
-It is recommended to either bind <interface> to a MAC with the **ifname**
712866
-argument. Or use biosdevname to name your interfaces, which will then have names according to their hardware location.
712866
-
712866
-em<port>::: for embedded NICs
712866
-p<slot>#<port>_<virtual instance>::: for cards in PCI slots
712866
-=====================
712866
-
712866
-**ip=**_<client-IP>_:_<server-IP>_:_<gateway-IP>_:_<netmask>_:_<client_hostname>_:_<interface>_:_{none|off|dhcp|on|any|dhcp6|auto6|ibft}_[:[_<mtu>_][:_<macaddr>_]]::
712866
+**ip=**__<client-IP>__:__<server-IP>__:__<gateway-IP>__:__<netmask>__:__<client_hostname>__:__<interface>__:__{none|off|dhcp|on|any|dhcp6|auto6|ibft}__:[:[__<mtu>__][:__<macaddr>__]]::
712866
     explicit network configuration. If you want do define a IPv6 address, put it
712866
     in brackets (e.g. [2001:DB8::1]). This parameter can be specified multiple
712866
     times.
712866
@@ -390,25 +455,14 @@ cannot be used in conjunction with the **ifname** argument for the
712866
 same <interface>.
712866
 =====================
712866
 
712866
-[IMPORTANT]
712866
-=====================
712866
-It is recommended to either bind <interface> to a MAC with the **ifname**
712866
-argument. Or use biosdevname to name your interfaces, which will then have names according to their hardware location.
712866
-
712866
-em<port>::: for embedded NICs
712866
-p<slot>#<port>_<virtual instance>::: for cards in PCI slots
712866
-=====================
712866
-
712866
-**ifname=**_<interface>_:_<MAC>_::
712866
+**ifname=**__<interface>__:__<MAC>__::
712866
     Assign network device name <interface> (ie "bootnet") to the NIC with MAC <MAC>.
712866
 +
712866
-[IMPORTANT]
712866
-
712866
-Do **not** use the default kernel naming scheme for the interface name,
712866
+WARNING: Do **not** use the default kernel naming scheme for the interface name,
712866
 as it can conflict with the kernel names. So, don't use "eth[0-9]+" for the
712866
 interface name. Better name it "bootnet" or "bluesocket".
712866
 
712866
-**bootdev=**_<interface>_::
712866
+**bootdev=**__<interface>__::
712866
     specify network interface to use routing and netroot information from.
712866
     Required if multiple ip= lines are used.
712866
 
712866
@@ -421,12 +475,12 @@ interface name. Better name it "bootnet" or "bluesocket".
712866
 **rd.neednet=1**::
712866
     boolean, bring up network even without netroot set
712866
 
712866
-**vlan=_<vlanname>_:_<phydevice>_**::
712866
+**vlan=**__<vlanname>__:__<phydevice>__::
712866
     Setup vlan device named <vlanname> on <phydeivce>.
712866
     We support the four styles of vlan names: VLAN_PLUS_VID (vlan0005), VLAN_PLUS_VID_NO_PAD (vlan5),
712866
     DEV_PLUS_VID (eth0.0005), DEV_PLUS_VID_NO_PAD (eth0.5)
712866
 
712866
-**bond=_<bondname>_[:_<bondslaves>_:[:_<options>_]]**::
712866
+**bond=**__<bondname>__[:__<bondslaves>__:[:__<options>__]]::
712866
     Setup bonding device <bondname> on top of <bondslaves>.
712866
     <bondslaves> is a comma-separated list of physical (ethernet) interfaces.
712866
     <options> is a comma-separated list on bonding options (modinfo bonding for details)
712866
@@ -434,68 +488,63 @@ interface name. Better name it "bootnet" or "bluesocket".
712866
     then its values should be separated by semicolon.
712866
     Bond without parameters assumes bond=bond0:eth0,eth1:mode=balance-rr
712866
 
712866
-**team =_<teammaster>_:_<teamslaves>_**::
712866
+**team=**__<teammaster>__:__<teamslaves>__::
712866
     Setup team device <teammaster> on top of <teamslaves>.
712866
     <teamslaves> is a comma-separated list of physical (ethernet) interfaces.
712866
 
712866
-**bridge=_<bridgename>_:_<ethnames>_**::
712866
+**bridge=**__<bridgename>__:__<ethnames>__::
712866
     Setup bridge <bridgename> with <ethnames>. <ethnames> is a comma-separated
712866
     list of physical (ethernet) interfaces. Bridge without parameters assumes bridge=br0:eth0
712866
 
712866
-
712866
 NFS
712866
 ~~~
712866
-**root=**[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_]::
712866
+**root=**\[_<server-ip>_:]__<root-dir>__[:__<nfs-options>__]::
712866
     mount nfs share from <server-ip>:/<root-dir>, if no server-ip is given, use
712866
     dhcp next_server. if server-ip is an IPv6 address it has to be put in
712866
     brackets, e.g. [2001:DB8::1]. NFS options can be appended with the prefix
712866
     ":" or "," and are seperated by ",".
712866
 
712866
-**root=**nfs:[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_], **root=**nfs4:[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_], **root=**_{dhcp|dhcp6}_::
712866
+**root=**nfs:\[_<server-ip>_:]__<root-dir>__[:__<nfs-options>__], **root=**nfs4:\[_<server-ip>_:]__<root-dir>__[:__<nfs-options>__], **root=**__{dhcp|dhcp6}__::
712866
     root=dhcp alone directs initrd to look at the DHCP root-path where NFS
712866
     options can be specified.
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
     root-path=<server-ip>:<root-dir>[,<nfs-options>]
712866
     root-path=nfs:<server-ip>:<root-dir>[,<nfs-options>]
712866
     root-path=nfs4:<server-ip>:<root-dir>[,<nfs-options>]
712866
-----
712866
+--
712866
 
712866
-**root=**_/dev/nfs_ nfsroot=[_<server-ip>_:]_<root-dir>_[:_<nfs-options>_]::
712866
+**root=**_/dev/nfs_ nfsroot=\[_<server-ip>_:]__<root-dir>__[:__<nfs-options>__]::
712866
     _Deprecated!_ kernel Documentation_/filesystems/nfsroot.txt_ defines this
712866
     method. This is supported by dracut, but not recommended.
712866
 
712866
-**rd.nfs.domain=**_<NFSv4 domain name>_::
712866
+**rd.nfs.domain=**__<NFSv4 domain name>__::
712866
     Set the NFSv4 domain name. Will overwrite the settings in _/etc/idmap.conf_.
712866
 
712866
 CIFS
712866
 ~~~
712866
-**root=**cifs://[_<username>_[:_<password>_]@]_<server-ip>_:_<root-dir>_::
712866
+**root=**cifs://[__<username>__[:__<password>__]@]__<server-ip>__:__<root-dir>__::
712866
     mount cifs share from <server-ip>:/<root-dir>, if no server-ip is given, use
712866
     dhcp next_server. if server-ip is an IPv6 address it has to be put in
712866
     brackets, e.g. [2001:DB8::1]. If a username or password are not specified
712866
 as part of the root, then they must be passed on the command line through
712866
 cifsuser/cifspass.
712866
 +
712866
-[WARNING]
712866
-====
712866
-Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path.
712866
-====
712866
+WARNING: Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path.
712866
 
712866
-**cifsuser=_<username>_::
712866
+**cifsuser**=__<username>__::
712866
     Set the cifs username, if not specified as part of the root.
712866
 
712866
-**cifspass=_<password>_::
712866
+**cifspass**=__<password>__::
712866
     Set the cifs password, if not specified as part of the root.
712866
 +
712866
-[WARNING]
712866
-====
712866
-Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path.
712866
-====
712866
+WARNING: Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path.
712866
 
712866
 iSCSI
712866
 ~~~~~
712866
-**root=**iscsi:[_<username>_:_<password>_[:_<reverse>_:_<password>_]@][_<servername>_]:[_<protocol>_]:[_<port>_][:[_<iscsi_iface_name>_]:[_<netdev_name>_]]:[_<LUN>_]:_<targetname>_::
712866
+**root=**iscsi:[__<username>__:__<password>__[:__<reverse>__:__<password>__]@][__<servername>__]:[__<protocol>__]:[__<port>__][:[__<iscsi_iface_name>__]:[__<netdev_name>__]]:[__<LUN>__]:__<targetname>__::
712866
     protocol defaults to "6", LUN defaults to "0". If the "servername" field is
712866
     provided by BOOTP or DHCP, then that field is used in conjunction with other
712866
     associated fields to contact the boot server in the Boot stage. However, if
712866
@@ -503,85 +552,84 @@ iSCSI
712866
     used in the Discovery Service stage in conjunction with other associated
712866
     fields. See
712866
     link:$$http://tools.ietf.org/html/rfc4173#section-5$$[rfc4173].
712866
-    e.g.:
712866
 +
712866
-----
712866
+WARNING: Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path.
712866
++
712866
+[listing]
712866
+.Example
712866
+--
712866
 root=iscsi:192.168.50.1::::iqn.2009-06.dracut:target0
712866
-----
712866
+--
712866
 +
712866
-If servername is an IPv6 address, it has to be put in brackets. e.g.:
712866
+If servername is an IPv6 address, it has to be put in brackets:
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 root=iscsi:[2001:DB8::1]::::iqn.2009-06.dracut:target0
712866
-----
712866
-+
712866
-[WARNING]
712866
-====
712866
-Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path.
712866
-====
712866
+--
712866
 
712866
-**root=**_???_ **netroot=**iscsi:[_<username>_:_<password>_[:_<reverse>_:_<password>_]@][_<servername>_]:[_<protocol>_]:[_<port>_][:[_<iscsi_iface_name>_]:[_<netdev_name>_]]:[_<LUN>_]:_<targetname>_ ...::
712866
-    multiple netroot options allow setting up multiple iscsi disks. e.g.:
712866
+**root=**__???__ **netroot=**iscsi:[__<username>__:__<password>__[:__<reverse>__:__<password>__]@][__<servername>__]:[__<protocol>__]:[__<port>__][:[__<iscsi_iface_name>__]:[__<netdev_name>__]]:[__<LUN>__]:__<targetname>__ ...::
712866
+    multiple netroot options allow setting up multiple iscsi disks:
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 root=UUID=12424547
712866
 netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target0
712866
 netroot=iscsi:192.168.50.1::::iqn.2009-06.dracut:target1
712866
-----
712866
+--
712866
 +
712866
-If servername is an IPv6 address, it has to be put in brackets. e.g.:
712866
+If servername is an IPv6 address, it has to be put in brackets:
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 netroot=iscsi:[2001:DB8::1]::::iqn.2009-06.dracut:target0
712866
-----
712866
+--
712866
 +
712866
-[WARNING]
712866
-====
712866
-Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path. You may want to use rd.iscsi.firmware.
712866
-====
712866
+WARNING: Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path. You may want to use rd.iscsi.firmware.
712866
 
712866
-**root=**_???_ **rd.iscsi.initiator=**_<initiator>_ **rd.iscsi.target.name=**_<target name>_  **rd.iscsi.target.ip=**_<target ip>_ **rd.iscsi.target.port=**_<target port>_ **rd.iscsi.target.group=**_<target group>_ **rd.iscsi.username=**_<username>_ **rd.iscsi.password=**_<password>_ **rd.iscsi.in.username=**_<in username>_ **rd.iscsi.in.password=**_<in password>_::
712866
+**root=**__???__ **rd.iscsi.initiator=**__<initiator>__ **rd.iscsi.target.name=**__<target name>__  **rd.iscsi.target.ip=**__<target ip>__ **rd.iscsi.target.port=**__<target port>__ **rd.iscsi.target.group=**__<target group>__ **rd.iscsi.username=**__<username>__ **rd.iscsi.password=**__<password>__ **rd.iscsi.in.username=**__<in username>__ **rd.iscsi.in.password=**__<in password>__::
712866
     manually specify all iscsistart parameter (see **+iscsistart --help+**)
712866
 +
712866
-[WARNING]
712866
-====
712866
-Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path. You may want to use rd.iscsi.firmware.
712866
-====
712866
+WARNING: Passwords specified on the kernel command line are visible for all users via the file _/proc/cmdline_ and via dmesg or can be sniffed on the network, when using DHCP with DHCP root-path. You may want to use rd.iscsi.firmware.
712866
 
712866
 **root=**_???_ **netroot=**iscsi **rd.iscsi.firmware=1**::
712866
  will read the iscsi parameter from the BIOS firmware
712866
 
712866
-**rd.iscsi.param=**_<param>_::
712866
+**rd.iscsi.param=**__<param>__::
712866
     <param> will be passed as "--param <param>" to iscsistart.
712866
     This parameter can be specified multiple times.
712866
-    e.g.:
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 "netroot=iscsi rd.iscsi.firmware=1 rd.iscsi.param=node.session.timeo.replacement_timeout=30"
712866
-----
712866
+--
712866
 +
712866
 will result in
712866
 +
712866
-----
712866
+[listing]
712866
+--
712866
 iscsistart -b --param node.session.timeo.replacement_timeout=30
712866
-----
712866
+--
712866
 
712866
 FCoE
712866
 ~~~~
712866
-**fcoe=**_<edd|interface|MAC>_:_{dcb|nodcb}_::
712866
+**fcoe=**__<edd|interface|MAC>__:__{dcb|nodcb}__::
712866
     Try to connect to a FCoE SAN through the NIC specified by _<interface>_ or
712866
     _<MAC>_ or EDD settings. For the second argument, currently only nodcb is
712866
     supported. This parameter can be specified multiple times.
712866
 +
712866
-[NOTE]
712866
-letters in the MAC-address must be lowercase!
712866
+NOTE: letters in the MAC-address must be lowercase!
712866
 
712866
 NBD
712866
 ~~~
712866
-**root=**??? **netroot=**nbd:_<server>_:_<port>_[:_<fstype>_[:_<mountopts>_[:_<nbdopts>_]]]::
712866
+**root=**??? **netroot=**nbd:__<server>__:__<port>__[:__<fstype>__[:__<mountopts>__[:__<nbdopts>__]]]::
712866
     mount nbd share from <server>
712866
 
712866
-**root=dhcp** with **dhcp** **root-path=**nbd:_<server>_:_<port>_[:_<fstype>_[:_<mountopts>_[:_<nbdopts>_]]]::
712866
+**root=dhcp** with **dhcp** **root-path=**nbd:__<server>__:__<port>__[:__<fstype>__[:__<mountopts>__[:__<nbdopts>__]]]::
712866
     root=dhcp alone directs initrd to look at the DHCP root-path where NBD
712866
     options can be specified. This syntax is only usable in cases where you are
712866
     directly mounting the volume as the rootfs.
712866
@@ -593,25 +641,29 @@ DASD
712866
 
712866
 ZFCP
712866
 ~~~~
712866
-**rd.zfcp=**_<zfcp adaptor device bus ID>_,_<WWPN>_,_<FCPLUN>_::
712866
-    rd.zfcp can be specified multiple times on the kernel command line. e.g.: 
712866
+**rd.zfcp=**__<zfcp adaptor device bus ID>__,__<WWPN>__,__<FCPLUN>__::
712866
+    rd.zfcp can be specified multiple times on the kernel command line.
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 rd.zfcp=0.0.4000,0x5005076300C213e9,0x5022000000000000
712866
-----
712866
+--
712866
 
712866
 **rd.zfcp.conf=0**::
712866
     ignore zfcp.conf included in the initramfs
712866
 
712866
 ZNET
712866
 ~~~~
712866
-**rd.znet=**_<nettype>_,_<subchannels>_,_<options>_::
712866
-    rd.znet can be specified multiple times on the kernel command line. e.g.: 
712866
+**rd.znet=**__<nettype>__,__<subchannels>__,__<options>__::
712866
+    rd.znet can be specified multiple times on the kernel command line.
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 rd.znet=qeth,0.0.0600,0.0.0601,0.0.0602,layer2=1,portname=foo
712866
 rd.znet=ctc,0.0.0600,0.0.0601,protocol=bar
712866
-----
712866
+--
712866
 
712866
 Plymouth Boot Splash
712866
 ~~~~~~~~~~~~~~~~~~~~
712866
@@ -623,33 +675,41 @@ Plymouth Boot Splash
712866
 
712866
 Kernel keys
712866
 ~~~~~~~~~~~
712866
-**masterkey=**_<kernel master key path name>_::
712866
-    Set the path name of the kernel master key. e.g.: 
712866
+**masterkey=**__<kernel master key path name>__::
712866
+    Set the path name of the kernel master key.
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 masterkey=/etc/keys/kmk-trusted.blob
712866
-----
712866
+--
712866
 
712866
-**masterkeytype=**_<kernel master key type>_::
712866
-    Set the type of the kernel master key. e.g.: 
712866
+**masterkeytype=**__<kernel master key type>__::
712866
+    Set the type of the kernel master key.
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 masterkeytype=trusted
712866
-----
712866
+--
712866
 
712866
-**evmkey=**_<EVM key path name>_::
712866
-    Set the path name of the EVM key. e.g.: 
712866
+**evmkey=**__<EVM key path name>__::
712866
+    Set the path name of the EVM key.
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 evmkey=/etc/keys/evm-trusted.blob
712866
-----
712866
+--
712866
 
712866
-**ecryptfskey=**_<eCryptfs key path name>_::
712866
-    Set the path name of the eCryptfs key. e.g.: 
712866
+**ecryptfskey=**__<eCryptfs key path name>__::
712866
+    Set the path name of the eCryptfs key.
712866
 +
712866
-----
712866
+[listing]
712866
+.Example
712866
+--
712866
 ecryptfskey=/etc/keys/ecryptfs-trusted.blob
712866
-----
712866
+--
712866
 
712866
 Deprecated, renamed Options
712866
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
712866
diff --git a/dracut.css b/dracut.css
712866
index e419a06..357ede1 100644
712866
--- a/dracut.css
712866
+++ b/dracut.css
712866
@@ -14,45 +14,6 @@ body {
712866
 	color:black;
712866
 }
712866
 
712866
-body.toc_embeded {
712866
-	/*for web hosting system only*/
712866
-	margin-left: 300px;
712866
-}
712866
-
712866
-object.toc, iframe.toc {
712866
-	/*for web hosting system only*/
712866
-	border-style:none;
712866
-	position:fixed;
712866
-	width:290px;
712866
-	height:99.99%;
712866
-	top:0;
712866
-	left:0;
712866
-	z-index: 100;
712866
-	border-style:none;
712866
-	border-right:1px solid #999;
712866
-}
712866
-
712866
-/* Hide web menu */
712866
-
712866
-body.notoc {
712866
-	margin-left: 3em;
712866
-}
712866
-
712866
-iframe.notoc {
712866
-	border-style:none;
712866
-	border: none;
712866
-	padding: 0em;
712866
-	position:fixed;
712866
-	width: 21px;
712866
-	height: 29px;
712866
-	top: 0px;
712866
-	left:0;
712866
-	overflow: hidden;
712866
-	margin: 0em;
712866
-	margin-left: -3px;
712866
-}
712866
-/* End hide web menu */
712866
-
712866
 /* desktop styles */
712866
 body.desktop {
712866
 	margin-left: 26em;
712866
@@ -166,7 +127,6 @@ h1 {
712866
 	margin-bottom: 0em;
712866
 	font-size: 3.0em;
712866
 	font-weight: bold;
712866
-	background: #003d6e url(../images/h1-bg.png) top left repeat-x;
712866
 	color: white;
712866
 	text-align: center;
712866
 	padding: 0.7em;
712866
@@ -480,106 +440,14 @@ h3.author {
712866
 	font-weight:bold;
712866
 }
712866
 
712866
-/* inline syntax highlighting */
712866
-.perl_Alert {
712866
-	color: #0000ff;
712866
-}
712866
-
712866
-.perl_BaseN {
712866
-	color: #007f00;
712866
-}
712866
-
712866
-.perl_BString {
712866
-	color: #5C3566;
712866
-}
712866
-
712866
-.perl_Char {
712866
-	color: #ff00ff;
712866
-}
712866
-
712866
-.perl_Comment {
712866
-	color: #FF00FF;
712866
-}
712866
-
712866
-
712866
-.perl_DataType {
712866
-	color: #0000ff;
712866
-}
712866
-
712866
-
712866
-.perl_DecVal {
712866
-	color: #00007f;
712866
-}
712866
-
712866
-
712866
-.perl_Error {
712866
-	color: #ff0000;
712866
-}
712866
-
712866
-
712866
-.perl_Float {
712866
-	color: #00007f;
712866
-}
712866
-
712866
-
712866
-.perl_Function {
712866
-	color: #007f00;
712866
-}
712866
-
712866
-
712866
-.perl_IString {
712866
-	color: #5C3566;
712866
-}
712866
-
712866
-
712866
-.perl_Keyword {
712866
-	color: #002F5D;
712866
-}
712866
-
712866
-
712866
-.perl_Operator {
712866
-	color: #ffa500;
712866
-}
712866
-
712866
-
712866
-.perl_Others {
712866
-	color: #b03060;
712866
-}
712866
-
712866
-
712866
-.perl_RegionMarker {
712866
-	color: #96b9ff;
712866
-}
712866
-
712866
-
712866
-.perl_Reserved {
712866
-	color: #9b30ff;
712866
-}
712866
-
712866
-
712866
-.perl_String {
712866
-	color: #5C3566;
712866
-}
712866
-
712866
-
712866
-.perl_Variable {
712866
-	color: #0000ff;
712866
-}
712866
-
712866
-
712866
-.perl_Warning {
712866
-	color: #0000ff;
712866
-}
712866
 
712866
 /*Lists*/
712866
 ul {
712866
 	padding-left:1.6em;
712866
-	list-style-image:url(../images/dot.png);
712866
 	list-style-type: circle;
712866
 }
712866
 
712866
 ul ul {
712866
-	list-style-image:url(../images/dot2.png);
712866
 	list-style-type: circle;
712866
 }
712866
 
712866
@@ -769,21 +637,6 @@ code {
712866
 	word-wrap: break-word; /* Internet Explorer 5.5+ */
712866
 }
712866
 
712866
-/*Notifications*/
712866
-div.warning:before {
712866
-	content:url(../images/warning.png);
712866
-	padding-left: 5px;
712866
-}
712866
-
712866
-div.note:before {
712866
-	content:url(../images/note.png);
712866
-	padding-left: 5px;
712866
-}
712866
-
712866
-div.important:before {
712866
-	content:url(../images/important.png);
712866
-	padding-left: 5px;
712866
-}
712866
 
712866
 div.warning, div.note, div.important {
712866
 	color: black;
712866
@@ -792,7 +645,8 @@ div.warning, div.note, div.important {
712866
 	background: none;
712866
 	background-color: white;
712866
 	margin-bottom: 1em;
712866
-	border-bottom: 1px solid #aaaaaa;
712866
+	padding-left: 1em;
712866
+	border-left: 2px solid #aaaaaa;
712866
 }
712866
 
712866
 div.warning h2, div.note h2,div.important h2 {
712866
@@ -817,20 +671,6 @@ div.admonition_header {
712866
 	font-size: 1.0em;
712866
 }
712866
 
712866
-div.warning div.admonition_header {
712866
-	background: url(../images/red.png) top left repeat-x;
712866
-	background-color: #590000;
712866
-}
712866
-
712866
-div.note div.admonition_header {
712866
-	background: url(../images/green.png) top right repeat-x;
712866
-	background-color: #597800;
712866
-}
712866
-
712866
-div.important div.admonition_header {
712866
-	background: url(../images/yellow.png) top right repeat-x;
712866
-	background-color: #a6710f;
712866
-}
712866
 
712866
 div.warning p, div.warning div.para,
712866
 div.note p, div.note div.para,
712866
@@ -1131,266 +971,6 @@ ul li p:last-child, ul li div.para:last-child {
712866
 	padding-bottom:0em;
712866
 }
712866
 
712866
-/*document navigation*/
712866
-.docnav a, .docnav strong {
712866
-	border:none;
712866
-	text-decoration:none;
712866
-	font-weight:normal;
712866
-}
712866
-
712866
-.docnav {
712866
-	list-style:none;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-	position:relative;
712866
-	width:100%;
712866
-	padding-bottom:2em;
712866
-	padding-top:1em;
712866
-	border-top:1px dotted #ccc;
712866
-}
712866
-
712866
-.docnav li {
712866
-	list-style:none;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-	display:inline;
712866
-	font-size:.8em;
712866
-}
712866
-
712866
-.docnav li:before {
712866
-	content:" ";
712866
-}
712866
-
712866
-.docnav li.previous, .docnav li.next {
712866
-	position:absolute;
712866
-	top:1em;
712866
-}
712866
-
712866
-.docnav li.up, .docnav li.home {
712866
-	margin:0em 1.5em;
712866
-}
712866
-
712866
-.docnav li.previous {
712866
-	left:0px;
712866
-	text-align:left;
712866
-}
712866
-
712866
-.docnav li.next {
712866
-	right:0px;
712866
-	text-align:right;
712866
-}
712866
-
712866
-.docnav li.previous strong, .docnav li.next strong {
712866
-	height:22px;
712866
-	display:block;
712866
-}
712866
-
712866
-.docnav {
712866
-	margin:0 auto;
712866
-	text-align:center;
712866
-}
712866
-
712866
-.docnav li.next a strong {
712866
-	background:  url(../images/stock-go-forward.png) top right no-repeat;
712866
-	padding-top:3px;
712866
-	padding-bottom:4px;
712866
-	padding-right:28px;
712866
-	font-size:1.2em;
712866
-}
712866
-
712866
-.docnav li.previous a strong {
712866
-	background: url(../images/stock-go-back.png) top left no-repeat;
712866
-	padding-top:3px;
712866
-	padding-bottom:4px;
712866
-	padding-left:28px;
712866
-	padding-right:0.5em;
712866
-	font-size:1.2em;
712866
-}
712866
-
712866
-.docnav li.home a strong {
712866
-	background: url(../images/stock-home.png) top left no-repeat;
712866
-	padding:5px;
712866
-	padding-left:28px;
712866
-	font-size:1.2em;
712866
-}
712866
-
712866
-.docnav li.up a strong {
712866
-	background: url(../images/stock-go-up.png) top left no-repeat;
712866
-	padding:5px;
712866
-	padding-left:28px;
712866
-	font-size:1.2em;
712866
-}
712866
-
712866
-.docnav a:link, .docnav a:visited {
712866
-	color:#666;
712866
-}
712866
-
712866
-.docnav a:hover, .docnav a:focus, .docnav a:active {
712866
-	color:black;
712866
-}
712866
-
712866
-.docnav a {
712866
-	max-width: 10em;
712866
-	overflow:hidden;
712866
-}
712866
-
712866
-.docnav a:link strong {
712866
-	text-decoration:none;
712866
-}
712866
-
712866
-.docnav {
712866
-	margin:0 auto;
712866
-	text-align:center;
712866
-}
712866
-
712866
-ul.docnav {
712866
-	margin-bottom: 1em;
712866
-}
712866
-/* Reports */
712866
-.reports ul {
712866
-	list-style:none;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-}
712866
-
712866
-.reports li{
712866
-	margin:0em;
712866
-	padding:0em;
712866
-}
712866
-
712866
-.reports li.odd {
712866
-	background-color: #eeeeee;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-}
712866
-
712866
-.reports dl {
712866
-	display:inline;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-	float:right;
712866
-	margin-right: 17em;
712866
-	margin-top:-1.3em;
712866
-}
712866
-
712866
-.reports dt {
712866
-	display:inline;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-}
712866
-
712866
-.reports dd {
712866
-	display:inline;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-	padding-right:.5em;
712866
-}
712866
-
712866
-.reports h2, .reports h3{
712866
-	display:inline;
712866
-	padding-right:.5em;
712866
-	font-size:10pt;
712866
-	font-weight:normal;
712866
-}
712866
-
712866
-.reports div.progress {
712866
-	display:inline;
712866
-	float:right;
712866
-	width:16em;
712866
-	background:#c00 url(../images/shine.png) top left repeat-x;
712866
-	margin:0em;
712866
-	margin-top:-1.3em;
712866
-	padding:0em;
712866
-	border:none;
712866
-}
712866
-
712866
-/*uniform*/
712866
-body.results, body.reports {
712866
-	max-width:57em ;
712866
-	padding:0em;
712866
-}
712866
-
712866
-/*Progress Bar*/
712866
-div.progress {
712866
-	display:block;
712866
-	float:left;
712866
-	width:16em;
712866
-	background:#c00 url(../images/shine.png) top left repeat-x;
712866
-	height:1em;
712866
-}
712866
-
712866
-div.progress span {
712866
-	height:1em;
712866
-	float:left;
712866
-}
712866
-
712866
-div.progress span.translated {
712866
-	background:#6c3 url(../images/shine.png) top left repeat-x;
712866
-}
712866
-
712866
-div.progress span.fuzzy {
712866
-	background:#ff9f00 url(../images/shine.png) top left repeat-x;
712866
-}
712866
-
712866
-
712866
-/*Results*/
712866
-
712866
-.results ul {
712866
-	list-style:none;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-}
712866
-
712866
-.results li{
712866
-	margin:0em;
712866
-	padding:0em;
712866
-}
712866
-
712866
-.results li.odd {
712866
-	background-color: #eeeeee;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-}
712866
-
712866
-.results dl {
712866
-	display:inline;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-	float:right;
712866
-	margin-right: 17em;
712866
-	margin-top:-1.3em;
712866
-}
712866
-
712866
-.results dt {
712866
-	display:inline;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-}
712866
-
712866
-.results dd {
712866
-	display:inline;
712866
-	margin:0em;
712866
-	padding:0em;
712866
-	padding-right:.5em;
712866
-}
712866
-
712866
-.results h2, .results h3 {
712866
-	display:inline;
712866
-	padding-right:.5em;
712866
-	font-size:10pt;
712866
-	font-weight:normal;
712866
-}
712866
-
712866
-.results div.progress {
712866
-	display:inline;
712866
-	float:right;
712866
-	width:16em;
712866
-	background:#c00 url(../images/shine.png) top left repeat-x;
712866
-	margin:0em;
712866
-	margin-top:-1.3em;
712866
-	padding:0em;
712866
-	border:none;
712866
-}
712866
 
712866
 /* Dirty EVIL Mozilla hack for round corners */
712866
 pre {
712866
@@ -1423,12 +1003,6 @@ span.remark {
712866
 	background-color: #ff00ff;
712866
 }
712866
 
712866
-.draft {
712866
-	background-image: url(../images/watermark-draft.png);
712866
-	background-repeat: repeat-y;
712866
-        background-position: center;
712866
-}
712866
-
712866
 .foreignphrase {
712866
 	font-style: inherit;
712866
 }
712866
@@ -1513,10 +1087,6 @@ h1 {
712866
 	color:#3c6eb4
712866
 }
712866
 
712866
-.producttitle {
712866
-	background: #3c6eb4 url(../images/h1-bg.png) top left repeat;
712866
-}
712866
-
712866
 .section h1.title {
712866
 	color:#3c6eb4;
712866
 }
712866
diff --git a/dracut.modules.7.asc b/dracut.modules.7.asc
712866
new file mode 100644
712866
index 0000000..4cb2aa1
712866
--- /dev/null
712866
+++ b/dracut.modules.7.asc
712866
@@ -0,0 +1,293 @@
712866
+DRACUT.MODULES(7)
712866
+=================
712866
+:doctype: manpage
712866
+:man source:   dracut
712866
+:man manual:   dracut
712866
+
712866
+NAME
712866
+----
712866
+dracut.modules - dracut modules
712866
+
712866
+DESCRIPTION
712866
+-----------
712866
+== dracut Components
712866
+
712866
+dracut uses a modular system to build and extend the initramfs image. All
712866
+modules are located in _/usr/lib/dracut/modules.d_ or in _<git-src>/modules.d_.
712866
+The most basic dracut module is _99base_. In _99base_ the initial shell script
712866
+init is defined, which gets run by the kernel after initramfs loading. Although
712866
+you can replace init with your own version of _99base_, this is not encouraged.
712866
+Instead you should use, if possible, the hooks of dracut. All hooks, and the
712866
+point of time in which they are executed, are described in <<stages>>.
712866
+
712866
+The main script, which creates the initramfs is dracut itsself. It parses all
712866
+arguments and sets up the directory, in which everything is installed. It then
712866
+executes all check, install, installkernel scripts found in the modules, which
712866
+are to be processed. After everything is installed, the install directory is
712866
+archived and compressed to the final initramfs image. All helper functions used
712866
+by check, install and installkernel are found in in the file _dracut-functions_.
712866
+These shell functions are available to all module installer (install,
712866
+installkernel) scripts, without the need to source _dracut-functions_.
712866
+
712866
+A module can check the preconditions for install and installkernel with the
712866
+check script. Also dependencies can be expressed with check. If a module passed
712866
+check, install and installkernel will be called to install all of the necessary
712866
+files for the module. To split between kernel and non-kernel parts of the
712866
+installation, all kernel module related parts have to be in installkernel. All
712866
+other files found in a module directory are module specific and mostly are hook
712866
+scripts and udev rules.
712866
+
712866
+
712866
+[[stages]]
712866
+== Boot Process Stages
712866
+
712866
+dracut modules can insert custom script at various points, to control the boot
712866
+process.
712866
+These hooks are plain directories containing shell scripts ending with ".sh",
712866
+which are sourced by init.
712866
+Common used functions are in _dracut-lib.sh_, which can be sourced by any script.
712866
+
712866
+=== Hook: cmdline
712866
+
712866
+The _cmdline_ hook is a place to insert scripts to parse the kernel command line
712866
+and prepare the later actions, like setting up udev rules and configuration
712866
+files.
712866
+
712866
+In this hook the most important environment variable is defined: root. The
712866
+second one is rootok, which indicates, that a module claimed to be able to parse
712866
+the root defined. So for example, **root=**__iscsi:....__ will be claimed by the
712866
+iscsi dracut module, which then sets rootok.
712866
+
712866
+=== Hook: pre-udev
712866
+
712866
+This hook is executed right after the cmdline hook and a check if root and
712866
+rootok were set. Here modules can take action with the final root, and before
712866
+udev has been run.
712866
+
712866
+=== Start Udev
712866
+
712866
+Now udev is started and the logging for udev is setup.
712866
+
712866
+=== Hook: pre-trigger
712866
+
712866
+In this hook, you can set udev environment variables with **udevadm control
712866
+--property=KEY=_value_** or control the further execution of udev with
712866
+udevadm.
712866
+
712866
+=== Trigger Udev
712866
+
712866
+udev is triggered by calling udevadm trigger, which sends add events for all
712866
+devices and subsystems.
712866
+
712866
+=== Main Loop
712866
+
712866
+In the main loop of dracut loops until udev has settled and
712866
+all scripts in _initqueue/finished_ returned true.
712866
+In this loop there are three hooks, where scripts can be inserted
712866
+by calling /sbin/initqueue.
712866
+
712866
+==== Initqueue
712866
+
712866
+This hook gets executed every time a script is inserted here, regardless of the
712866
+udev state.
712866
+
712866
+==== Initqueue settled
712866
+
712866
+This hooks (initqueue/settled) gets executed every time udev has settled.
712866
+
712866
+==== Initqueue timeout
712866
+
712866
+This hooks (initqueue/timeout) gets executed, when the main loop counter becomes half of the
712866
+rd.retry counter.
712866
+
712866
+==== Initqueue finished
712866
+
712866
+This hook (initqueue/finished) is called after udev has settled and
712866
+if all scripts herein return 0 the main loop will be ended.
712866
+Abritary scripts can be added here, to loop in the
712866
+initqueue until something happens, which a dracut module wants to wait for.
712866
+
712866
+=== Hook: pre-mount
712866
+
712866
+Before the root device is mounted all scripts in the hook pre-mount are
712866
+executed. In some cases (e.g. NFS) the real root device is already mounted,
712866
+though.
712866
+
712866
+=== Hook: mount
712866
+
712866
+This hook is mainly to mount the real root device.
712866
+
712866
+=== Hook: pre-pivot
712866
+
712866
+This hook is called before cleanup hook, This is a good place for
712866
+actions other than cleanups which need to be called before pivot.
712866
+
712866
+=== Hook: cleanup
712866
+
712866
+This hook is the last hook and is called before init finally switches root to
712866
+the real root device. This is a good place to clean up and kill processes not
712866
+needed anymore.
712866
+
712866
+
712866
+=== Cleanup and switch_root
712866
+
712866
+Init (or systemd) kills all udev processes, cleans up the environment,
712866
+sets up the arguments for the real init process and finally calls switch_root.
712866
+switch_root removes the whole filesystem hierarchy of the initramfs,
712866
+chroot()s to the real root device and calls /sbin/init with the specified arguments.
712866
+
712866
+To ensure all files in the initramfs hierarchy can be removed, all processes
712866
+still running from the initramfs should not have any open file descriptors left.
712866
+
712866
+== Network Infrastructure
712866
+
712866
+FIXME
712866
+
712866
+== Writing a Module
712866
+
712866
+A simple example module is _96insmodpost_, which modprobes a kernel module after
712866
+udev has settled and the basic device drivers have been loaded.
712866
+
712866
+All module installation information is in the file module-setup.sh.
712866
+
712866
+First we create a check() function, which just exits with 0 indicating that this
712866
+module should be included by default.
712866
+
712866
+check():
712866
+----
712866
+return 0
712866
+----
712866
+
712866
+The we create the install() function, which installs a cmdline hook with
712866
+priority number 20 called _parse-insmodpost.sh_. It also installs the
712866
+_insmodpost.sh_ script in _/sbin_.
712866
+
712866
+install():
712866
+----
712866
+inst_hook cmdline 20 "$moddir/parse-insmodpost.sh"
712866
+inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh
712866
+----
712866
+
712866
+The _pase-instmodpost.sh_ parses the kernel command line for a argument
712866
+rd.driver.post, blacklists the module from being autoloaded and installs the
712866
+hook _insmodpost.sh_ in the _initqueue/settled_.
712866
+
712866
+_parse-insmodpost.sh_:
712866
+----
712866
+for p in $(getargs rd.driver.post=); do
712866
+    echo "blacklist $p" >> /etc/modprobe.d/initramfsblacklist.conf
712866
+    _do_insmodpost=1
712866
+done
712866
+
712866
+[ -n "$_do_insmodpost" ] && /sbin/initqueue --settled --unique --onetime /sbin/insmodpost.sh
712866
+unset _do_insmodpost
712866
+
712866
+----
712866
+
712866
+_insmodpost.sh_, which is called in the _initqueue/settled_ hook will just
712866
+modprobe the kernel modules specified in all rd.driver.post kernel command line
712866
+parameters. It runs after udev has settled and is only called once (--onetime).
712866
+
712866
+_insmodpost.sh_:
712866
+----
712866
+. /lib/dracut-lib.sh
712866
+
712866
+for p in $(getargs rd.driver.post=); do
712866
+    modprobe $p
712866
+done
712866
+
712866
+----
712866
+
712866
+
712866
+=== module-setup.sh: check()
712866
+
712866
+_check()_ is called by dracut to evaluate the inclusion of a dracut module in
712866
+the initramfs.
712866
+
712866
+$hostonly:: If the $hostonly variable is set, then the module check() function
712866
+should be in "hostonly" mode, which means, that the check() should only return
712866
+0, if the module is really needed to boot this specific host.
712866
+
712866
+check() should return with:
712866
+
712866
+0:: Include the dracut module in the initramfs.
712866
+
712866
+1:: Do not include the dracut module. The requirements are not fullfilled
712866
+(missing tools, etc.)
712866
+
712866
+255:: Only include the dracut module, if another module requires it or if
712866
+explicitly specified in the config file or on the argument list.
712866
+
712866
+
712866
+=== module-setup.sh: depends()
712866
+
712866
+The function depends() should echo all other dracut module names the module
712866
+depends on.
712866
+
712866
+=== module-setup.sh: cmdline()
712866
+
712866
+This function should print the kernel command line options needed to boot the current
712866
+machine setup. It should start with a space and should not print a newline.
712866
+
712866
+=== module-setup.sh: install()
712866
+
712866
+The install() function is called to install everything non-kernel related. To install
712866
+binaries, scripts, and other files, you can use the functions mentioned in <<creation>>.
712866
+
712866
+To address a file in the current module directory, use the variable "$moddir".
712866
+
712866
+=== module-setup.sh: installkernel()
712866
+
712866
+In installkernel() all kernel related files should be installed. You can use all of the functions
712866
+mentioned in <<creation>> to install files.
712866
+
712866
+=== [[creation]]Creation Functions
712866
+
712866
+==== inst_multiple [-o] <file> [ <file> ...]
712866
+
712866
+installs multiple binaries and files. If executables are specified without a path, dracut
712866
+will search the path PATH=/usr/sbin:/sbin:/usr/bin:/bin for the binary. If the option "-o"
712866
+is given as the first parameter, a missing file does not lead to an error.
712866
+
712866
+==== inst <src> [<dst>]
712866
+
712866
+installs _one_ file <src> either to the same place in the initramfs or to an optional <dst>.
712866
+
712866
+==== inst_hook <hookdir> <prio> <src>
712866
+
712866
+installs an executable/script <src> in the dracut hook <hookdir> with priority <prio>.
712866
+
712866
+==== inst_rules <udevrule> [ <udevrule> ...]
712866
+
712866
+installs one ore more udev rules. Non-existant udev rules are reported, but do not let dracut fail.
712866
+
712866
+==== instmods <kernelmodule> [ <kernelmodule> ... ]
712866
+
712866
+instmods should be used only in the installkernel() function.
712866
+
712866
+instmods installs one or more kernel modules in the initramfs. <kernelmodule> can also be a whole
712866
+subsystem, if prefixed with a "=", like "=drivers/net/team".
712866
+
712866
+instmods will not install the kernel module, if $hostonly is set and the kernel module is not currently
712866
+needed by any /sys/*...*/uevent MODALIAS.
712866
+To install a kernel module regardless of the hostonly mode use the form:
712866
+----
712866
+hostonly='' instmods <kernelmodule>
712866
+----
712866
+
712866
+=== Initramfs Functions
712866
+
712866
+FIXME
712866
+
712866
+
712866
+=== Network Modules
712866
+
712866
+FIXME
712866
+
712866
+AUTHOR
712866
+------
712866
+Harald Hoyer
712866
+
712866
+SEE ALSO
712866
+--------
712866
+*dracut*(8)
712866
diff --git a/dracut.spec b/dracut.spec
712866
index b1cf9fe..8dfc753 100644
712866
--- a/dracut.spec
712866
+++ b/dracut.spec
712866
@@ -316,6 +316,7 @@ rm -rf -- $RPM_BUILD_ROOT
712866
 %endif
712866
 %{_mandir}/man7/dracut.kernel.7*
712866
 %{_mandir}/man7/dracut.cmdline.7*
712866
+%{_mandir}/man7/dracut.modules.7*
712866
 %{_mandir}/man7/dracut.bootup.7*
712866
 %{_mandir}/man5/dracut.conf.5*
712866
 %if %{defined _unitdir}
712866
diff --git a/dracut.usage.asc b/dracut.usage.asc
712866
new file mode 100644
712866
index 0000000..6d37920
712866
--- /dev/null
712866
+++ b/dracut.usage.asc
712866
@@ -0,0 +1,526 @@
712866
+To create a initramfs image, the most simple command is:
712866
+----
712866
+# dracut
712866
+----
712866
+
712866
+This will generate a general purpose initramfs image, with all possible
712866
+functionality resulting of the combination of the installed dracut modules and
712866
+system tools. The image is /boot/initramfs-_++<kernel version>++_.img and
712866
+contains the kernel modules of the currently active kernel with version
712866
+_++<kernel version>++_.
712866
+
712866
+If the initramfs image already exists, dracut will display an error message, and
712866
+to overwrite the existing image, you have to use the --force option.
712866
+----
712866
+# dracut --force
712866
+----
712866
+
712866
+If you want to specify another filename for the resulting image you would issue
712866
+a command like:
712866
+----
712866
+# dracut foobar.img
712866
+----
712866
+
712866
+To generate an image for a specific kernel version, the command would be:
712866
+----
712866
+# dracut foobar.img 2.6.40-1.rc5.f20
712866
+----
712866
+
712866
+A shortcut to generate the image at the default location for a specific kernel
712866
+version is:
712866
+----
712866
+# dracut --kver 2.6.40-1.rc5.f20
712866
+----
712866
+
712866
+If you want to create lighter, smaller initramfs images, you may want to specify
712866
+the --hostonly or -H option. Using this option, the resulting image will
712866
+contain only those dracut modules, kernel modules and filesystems, which are
712866
+needed to boot this specific machine. This has the drawback, that you can't put
712866
+the disk on another controller or machine, and that you can't switch to another
712866
+root filesystem, without recreating the initramfs image. The usage of the
712866
+--hostonly option is only for experts and you will have to keep the broken
712866
+pieces. At least keep a copy of a general purpose image (and corresponding
712866
+kernel) as a fallback to rescue your system.
712866
+
712866
+=== Inspecting the Contents
712866
+To see the contents of the image created by dracut, you can use the lsinitrd tool.
712866
+----
712866
+# lsinitrd | less
712866
+----
712866
+
712866
+To display the contents of a file in the initramfs also use the lsinitrd tool:
712866
+----
712866
+# lsinitrd -f /etc/ld.so.conf
712866
+include ld.so.conf.d/*.conf
712866
+----
712866
+
712866
+=== Adding dracut Modules
712866
+Some dracut modules are turned off by default and have to be activated manually.
712866
+You can do this by adding the dracut modules to the configuration file
712866
+_/etc/dracut.conf_ or _/etc/dracut.conf.d/myconf.conf_. See *dracut.conf*(5).
712866
+You can also add dracut modules on the command line
712866
+by using the -a or --add option:
712866
+----
712866
+# dracut --add bootchart initramfs-bootchart.img
712866
+----
712866
+
712866
+To see a list of available dracut modules, use the --list-modules option:
712866
+----
712866
+# dracut --list-modules
712866
+----
712866
+
712866
+=== Omitting dracut Modules
712866
+Sometimes you don't want a dracut module to be included for reasons of speed,
712866
+size or functionality. To do this, either specify the omit_dracutmodules
712866
+variable in the _dracut.conf_ or _/etc/dracut.conf.d/myconf.conf_ configuration
712866
+file (see *dracut.conf*(5)), or use the -o or --omit option
712866
+on the command line:
712866
+----
712866
+# dracut -o "multipath lvm" no-multipath-lvm.img
712866
+----
712866
+
712866
+=== Adding Kernel Modules
712866
+If you need a special kernel module in the initramfs, which is not
712866
+automatically picked up by dracut, you have the use the --add-drivers option
712866
+on the command line or  the drivers vaiable in  the _/etc/dracut.conf_
712866
+or _/etc/dracut.conf.d/myconf.conf_ configuration file (see *dracut.conf*(5)):
712866
+----
712866
+# dracut --add-drivers mymod initramfs-with-mymod.img
712866
+----
712866
+
712866
+=== Boot parameters
712866
+An initramfs generated without the "hostonly" mode, does not contain any system
712866
+configuration files (except for some special exceptions), so the configuration
712866
+has to be done on the kernel command line. With this flexibility, you can easily
712866
+boot from a changed root partition, without the need to recompile the initramfs
712866
+image. So, you could completly change your root partition (move it inside a md
712866
+raid with encryption and LVM on top), as long as you specify the correct
712866
+filesystem LABEL or UUID on the kernel command line for your root device, dracut
712866
+will find it and boot from it.
712866
+
712866
+The kernel command line usually can be configured in _/boot/grub/grub.conf_, if
712866
+grub is your bootloader and it also can be edited in the real boot process in
712866
+the grub menu.
712866
+
712866
+The kernel command line can also be provided by the dhcp server with the
712866
+root-path option. See <<NetworkBoot>>.
712866
+
712866
+For a full reference of all kernel command line parameters, see *dracut.cmdline*(5).
712866
+
712866
+To get a quick start for the suitable kernel command line on your system, use the
712866
+__--print-cmdline__ option:
712866
+----
712866
+# dracut --print-cmdline
712866
+ root=UUID=8b8b6f91-95c7-4da2-831b-171e12179081 rootflags=rw,relatime,discard,data=ordered rootfstype=ext4
712866
+----
712866
+
712866
+==== Specifying the root Device
712866
+This is the only option dracut really needs to boot from your root partition.
712866
+Because your root partition can live in various environments, there are a lot of
712866
+formats for the root= option. The most basic one is root=_++
712866
+node>++_:
712866
+----
712866
+root=/dev/sda2
712866
+----
712866
+
712866
+Because device node names can change, dependent on the drive ordering, you are
712866
+encouraged to use the filesystem identifier (UUID) or filesystem label (LABEL)
712866
+to specify your root partition:
712866
+----
712866
+root=UUID=19e9dda3-5a38-484d-a9b0-fa6b067d0331
712866
+----
712866
+
712866
+or
712866
+
712866
+----
712866
+root=LABEL=myrootpartitionlabel
712866
+----
712866
+
712866
+To see all UUIDs or LABELs on your system, do:
712866
+----
712866
+# ls -l /dev/disk/by-uuid
712866
+----
712866
+
712866
+or
712866
+
712866
+----
712866
+# ls -l /dev/disk/by-label
712866
+----
712866
+
712866
+If your root partition is on the network see <<NetworkBoot>>.
712866
+
712866
+==== Keyboard Settings
712866
+If you have to input passwords for encrypted disk volumes, you might want to set
712866
+the keyboard layout and specify a display font.
712866
+
712866
+A typical german kernel command would contain:
712866
+----
712866
+rd.vconsole.font=latarcyrheb-sun16 rd.vconsole.keymap=de-latin1-nodeadkeys rd.locale.LANG=de_DE.UTF-8
712866
+----
712866
+
712866
+Setting these options can override the setting stored on your system, if you use
712866
+a modern init system, like systemd.
712866
+
712866
+==== Blacklisting Kernel Modules
712866
+Sometimes it is required to prevent the automatic kernel module loading of a
712866
+specific kernel module. To do this, just add rd.blacklist=_++
712866
+name>++_, with _++<kernel module name>++_ not containing the _.ko_
712866
+suffix, to the kernel command line. For example:
712866
+----
712866
+rd.driver.blacklist=mptsas rd.driver.blacklist=nouveau
712866
+----
712866
+
712866
+The option can be specified multiple times on the kernel command line.
712866
+
712866
+==== Speeding up the Boot Process
712866
+If you want to speed up the boot process, you can specify as much information
712866
+for dracut on the kernel command as possible. For example, you can tell dracut,
712866
+that you root partition is not on a LVM volume or not on a raid partition, or
712866
+that it lives inside a specific crypto LUKS encrypted volume. By default, dracut
712866
+searches everywhere. A typical dracut kernel command line for a plain primary or
712866
+logical partition would contain:
712866
+----
712866
+rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0
712866
+----
712866
+
712866
+This turns off every automatic assembly of LVM, MD raids, DM raids and crypto LUKS.
712866
+
712866
+Of course, you could also omit the dracut modules in the initramfs creation
712866
+process, but then you would lose the posibility to turn it on on demand.
712866
+
712866
+
712866
+[[Injecting]]
712866
+=== Injecting custom Files
712866
+To add your own files to the initramfs image, you have several possibilities.
712866
+
712866
+The --include option let you specify a source path and a target path. For example
712866
+----
712866
+# dracut --include cmdline-preset /etc/cmdline.d/mycmdline.conf initramfs-cmdline-pre.img
712866
+----
712866
+will create an initramfs image, where the file cmdline-preset will be copied
712866
+inside the initramfs to _/etc/cmdline.d/mycmdline.conf_. --include can only be specified once.
712866
+
712866
+
712866
+----
712866
+# mkdir -p rd.live.overlay/etc/cmdline.d
712866
+# mkdir -p rd.live.overlay/etc/conf.d
712866
+# echo "ip=auto" >> rd.live.overlay/etc/cmdline.d/mycmdline.conf
712866
+# echo export FOO=testtest >> rd.live.overlay/etc/conf.d/testvar.conf
712866
+# echo export BAR=testtest >> rd.live.overlay/etc/conf.d/testvar.conf
712866
+# tree rd.live.overlay/
712866
+rd.live.overlay/
712866
+`-- etc
712866
+    |-- cmdline.d
712866
+    |   `-- mycmdline.conf
712866
+    `-- conf.d
712866
+        `-- testvar.conf
712866
+
712866
+# dracut --include rd.live.overlay / initramfs-rd.live.overlay.img
712866
+----
712866
+
712866
+This will put the contents of the rd.live.overlay directory into the root of the
712866
+initramfs image.
712866
+
712866
+The --install option let you specify several files, which will get installed in
712866
+the initramfs image at the same location, as they are present on initramfs
712866
+creation time.
712866
+
712866
+
712866
+----
712866
+# dracut --install 'strace fsck.ext3 ssh' initramfs-dbg.img
712866
+----
712866
+
712866
+This will create an initramfs with the strace, fsck.ext3 and ssh executables,
712866
+together with the libraries needed to start those. The --install option can be
712866
+specified multiple times.
712866
+
712866
+
712866
+[[NetworkBoot]]
712866
+=== Network Boot
712866
+
712866
+If your root partition is on a network drive, you have to have the network
712866
+dracut modules installed to create a network aware initramfs image.
712866
+
712866
+On a Red Hat Enterprise Linux or Fedora system, this means, you have to install
712866
+the _dracut-network_ rpm package:
712866
+
712866
+
712866
+----
712866
+# yum install dracut-network
712866
+----
712866
+
712866
+The resulting initramfs image can be served by a boot manager residing on your
712866
+local hard drive or it can be served by a PXE/TFTP server.
712866
+
712866
+How to setup your PXE/TFTP server can be found in the
712866
+http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/[Red
712866
+Hat Enterprise Linux Storage Administration Guide].
712866
+
712866
+If you specify ip=auto on the kernel command line, then dracut asks a dhcp
712866
+server about the ip adress for the machine. The dhcp server can also serve an
712866
+additional root-path, which will set the root device for dracut. With this
712866
+mechanism, you have static configuration on your client machine and a
712866
+centralized boot configuration on your TFTP/DHCP server. If you can't pass a
712866
+kernel command line, then you can inject _/etc/cmdline.d/mycmdline.conf_, with a method described
712866
+in <<Injecting>>.
712866
+
712866
+==== Reducing the Image Size
712866
+
712866
+To reduce the size of the initramfs, you should create it with by ommitting all
712866
+dracut modules, which you know, you don't need to boot the machine.
712866
+
712866
+You can also specify the exact dracut and kernel modules to produce a very tiny
712866
+initramfs image.
712866
+
712866
+For example for a NFS image, you would do:
712866
+
712866
+
712866
+----
712866
+# dracut -m "nfs network  base" initramfs-nfs-only.img
712866
+----
712866
+
712866
+Then you would boot from this image with your target machine and reduce the size
712866
+once more by creating it on the target machine with the --host-only option:
712866
+
712866
+
712866
+----
712866
+# dracut -m "nfs network base" --host-only initramfs-nfs-host-only.img
712866
+----
712866
+
712866
+This will reduce the size of the initramfs image significantly.
712866
+
712866
+
712866
+== Troubleshooting
712866
+
712866
+If the boot process does not succeed, you have several options to debug the
712866
+situation. Some of the basic operations are covered here. For more information
712866
+you should also visit:
712866
+http://fedoraproject.org/wiki/How_to_debug_Dracut_problems
712866
+
712866
+
712866
+[[identifying-your-problem-area]]
712866
+=== Identifying your problem area
712866
+. Remove ''rhgb'' and ''quiet'' from the kernel command line
712866
+. Add ''rd.shell'' to the kernel command line. This will present a shell should
712866
+dracut be unable to locate your root device
712866
+. Add ''rd.shell rd.debug log_buf_len=1M'' to the kernel command line so that
712866
+dracut shell commands are printed as they are executed
712866
+. The file /run/initramfs/rdsosreport.txt is generated,
712866
+which contains all the logs and the output of all significant tools, which are mentioned later.
712866
+
712866
+If you want to save that output, simply mount /boot by hand or insert an USB stick and mount that.
712866
+Then you can store the output for later inspection.
712866
+
712866
+[[information-to-include-in-your-report]]
712866
+=== Information to include in your report
712866
+
712866
+[[all-bug-reports]]
712866
+==== All bug reports
712866
+In all cases, the following should be mentioned and attached to your bug report:
712866
+
712866
+* The exact kernel command-line used. Typically from the bootloader
712866
+configuration file (e.g. _/etc/grub.conf_) or from _/proc/cmdline_.
712866
+* A copy of your disk partition information from _/etc/fstab_, which might be
712866
+obtained booting an old working initramfs or a rescue medium.
712866
+* Turn on dracut debugging (see _the 'debugging dracut' section_), and attach
712866
+the file /run/initramfs/rdsosreport.txt.
712866
+* If you use a dracut configuration file, please include _/etc/dracut.conf_ and
712866
+all files in _/etc/dracut.conf.d/*.conf_
712866
+
712866
+[[network-root-device-related-problems]]
712866
+==== Network root device related problems
712866
+This section details information to include when experiencing problems on a
712866
+system whose root device is located on a network attached volume (e.g. iSCSI,
712866
+NFS or NBD). As well as the information from <<all-bug-reports>>, include the
712866
+following information:
712866
+
712866
+
712866
+* Please include the output of
712866
++
712866
+----
712866
+# /sbin/ifup <interfacename>
712866
+# ip addr show
712866
+----
712866
+
712866
+[[debugging-dracut]]
712866
+=== Debugging dracut
712866
+
712866
+
712866
+[[configure-a-serial-console]]
712866
+==== Configure a serial console
712866
+
712866
+Successfully debugging dracut will require some form of console
712866
+logging during the system boot.  This section documents configuring a
712866
+serial console connection to record boot messages.
712866
+
712866
+. First, enable serial console output for both the kernel and the bootloader.
712866
+. Open the file _/etc/grub.conf_ for editing. Below the line ''timeout=5'', add
712866
+the following:
712866
++
712866
+----
712866
+serial --unit=0 --speed=9600
712866
+terminal --timeout=5 serial console
712866
+----
712866
++
712866
+. Also in _/etc/grub.conf_, add the following boot arguemnts to the ''kernel''
712866
+line:
712866
++
712866
+----
712866
+console=tty0 console=ttyS0,9600
712866
+----
712866
++
712866
+. When finished, the _/etc/grub.conf_ file should look similar to the example
712866
+below.
712866
++
712866
+----
712866
+default=0
712866
+timeout=5
712866
+serial --unit=0 --speed=9600
712866
+terminal --timeout=5 serial console
712866
+title Fedora (2.6.29.5-191.fc11.x86_64)
712866
+  root (hd0,0)
712866
+  kernel /vmlinuz-2.6.29.5-191.fc11.x86_64 ro root=/dev/mapper/vg_uc1-lv_root console=tty0 console=ttyS0,9600
712866
+  initrd /dracut-2.6.29.5-191.fc11.x86_64.img
712866
+----
712866
++
712866
+. More detailed information on how to configure the kernel for console output
712866
+can be found at
712866
+http://www.faqs.org/docs/Linux-HOWTO/Remote-Serial-Console-HOWTO.html#CONFIGURE-KERNEL.
712866
+. Redirecting non-interactive output
712866
++
712866
+--
712866
+NOTE: You can redirect all non-interactive output to _/dev/kmsg_ and the kernel
712866
+will put it out on the console when it reaches the kernel buffer by doing
712866
+
712866
+----
712866
+# exec >/dev/kmsg 2>&1 
712866
+----
712866
+--
712866
+
712866
+[[using-the-dracut-shell]]
712866
+==== Using the dracut shell
712866
+
712866
+dracut offers a shell for interactive debugging in the event dracut fails to
712866
+locate your root filesystem. To enable the shell:
712866
+
712866
+. Add the boot parameter ''rd.shell'' to your bootloader configuration file
712866
+(e.g. _/etc/grub.conf_)
712866
+. Remove the boot arguments ''rhgb'' and ''quiet''
712866
++
712866
+A sample _/etc/grub.conf_ bootloader configuration file is listed below.
712866
++
712866
+----
712866
+default=0
712866
+timeout=5
712866
+serial --unit=0 --speed=9600
712866
+terminal --timeout=5 serial console
712866
+title Fedora (2.6.29.5-191.fc11.x86_64)
712866
+  root (hd0,0)
712866
+  kernel /vmlinuz-2.6.29.5-191.fc11.x86_64 ro root=/dev/mapper/vg_uc1-lv_root console=tty0 rd.shell
712866
+  initrd /dracut-2.6.29.5-191.fc11.x86_64.img
712866
+----
712866
++
712866
+. If system boot fails, you will be dropped into a shell as seen in the example below.
712866
++
712866
+----
712866
+No root device found
712866
+Dropping to debug shell.
712866
+
712866
+#
712866
+----
712866
++
712866
+. Use this shell prompt to gather the information requested above (see <<all-bug-reports>>).
712866
+
712866
+[[accessing-the-root-volume-from-the-dracut-shell]]
712866
+==== Accessing the root volume from the dracut shell
712866
+From the dracut debug shell, you can manually perform the task of locating and
712866
+preparing your root volume for boot. The required steps will depend on how your
712866
+root volume is configured. Common scenarios include:
712866
+
712866
+* A block device (e.g. _/dev/sda7_)
712866
+* A LVM logical volume (e.g. _/dev/VolGroup00/LogVol00_)
712866
+* An encrypted device (e.g. _/dev/mapper/luks-4d5972ea-901c-4584-bd75-1da802417d83_)
712866
+* A network attached device (e.g. netroot=iscsi:@192.168.0.4::3260::iqn.2009-02.org.fedoraproject:for.all)
712866
+
712866
+The exact method for locating and preparing will vary. However, to continue with
712866
+a successful boot, the objective is to locate your root volume and create a
712866
+symlink _/dev/root_ which points to the file system. For example, the following
712866
+example demonstrates accessing and booting a root volume that is an encrypted
712866
+LVM Logical volume.
712866
+
712866
+. Inspect your partitions using parted
712866
++
712866
+----
712866
+# parted /dev/sda -s p
712866
+Model: ATA HTS541060G9AT00 (scsi)
712866
+Disk /dev/sda: 60.0GB
712866
+Sector size (logical/physical): 512B/512B
712866
+Partition Table: msdos
712866
+Number  Start   End     Size    Type      File system  Flags
712866
+1      32.3kB  10.8GB  107MB   primary   ext4         boot
712866
+2      10.8GB  55.6GB  44.7GB  logical                lvm
712866
+----
712866
++
712866
+. You recall that your root volume was a LVM logical volume. Scan and activate
712866
+any logical volumes.
712866
++
712866
+----
712866
+# lvm vgscan
712866
+# lvm vgchange -ay
712866
+----
712866
++
712866
+. You should see any logical volumes now using the command blkid:
712866
++
712866
+----
712866
+# blkid
712866
+/dev/sda1: UUID="3de247f3-5de4-4a44-afc5-1fe179750cf7" TYPE="ext4"
712866
+/dev/sda2: UUID="Ek4dQw-cOtq-5MJu-OGRF-xz5k-O2l8-wdDj0I" TYPE="LVM2_member"
712866
+/dev/mapper/linux-root: UUID="def0269e-424b-4752-acf3-1077bf96ad2c" TYPE="crypto_LUKS"
712866
+/dev/mapper/linux-home: UUID="c69127c1-f153-4ea2-b58e-4cbfa9257c5e" TYPE="ext3"
712866
+/dev/mapper/linux-swap: UUID="47b4d329-975c-4c08-b218-f9c9bf3635f1" TYPE="swap"
712866
+----
712866
++
712866
+. From the output above, you recall that your root volume exists on an encrypted
712866
+block device. Following the guidance disk encryption guidance from the
712866
+Installation Guide, you unlock your encrypted root volume.
712866
++
712866
+----
712866
+# UUID=$(cryptsetup luksUUID /dev/mapper/linux-root)
712866
+# cryptsetup luksOpen /dev/mapper/linux-root luks-$UUID
712866
+Enter passphrase for /dev/mapper/linux-root:
712866
+Key slot 0 unlocked.
712866
+----
712866
++
712866
+. Next, make a symbolic link to the unlocked root volume
712866
++
712866
+----
712866
+# ln -s /dev/mapper/luks-$UUID /dev/root
712866
+----
712866
++
712866
+. With the root volume available, you may continue booting the system by exiting
712866
+the dracut shell
712866
++
712866
+----
712866
+# exit
712866
+----
712866
+
712866
+[[additional-dracut-boot-parameters]]
712866
+==== Additional dracut boot parameters
712866
+For more debugging options, see *dracut.cmdline*(7).
712866
+
712866
+
712866
+[[debugging-dracut-on-shutdown]]
712866
+==== Debugging dracut on shutdown
712866
+
712866
+To debug the shutdown sequence on systemd systems, you can _rd.break_
712866
+on _pre-shutdown_ or _shutdown_.
712866
+
712866
+To do this from an already booted system:
712866
+----
712866
+# mkdir -p /run/initramfs/etc/cmdline.d
712866
+# echo "rd.break=pre-shutdown" > /run/initramfs/etc/cmdline.d/debug.conf
712866
+# touch /run/initramfs/.need_shutdown
712866
+----
712866
+
712866
+This will give you a dracut shell after the system pivot'ed back in the initramfs.
712866
+