712866
From c850879b862058a644a05f8fe2fc2206e0e317e8 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Thu, 3 Sep 2015 16:25:23 +0200
712866
Subject: [PATCH] dracut.usage.asc: update man page
712866
712866
- clarify grub2 config for debugging
712866
- clarify hostonly mode
712866
---
712866
 dracut.usage.asc | 74 ++++++++++++++++++--------------------------------------
712866
 1 file changed, 23 insertions(+), 51 deletions(-)
712866
712866
diff --git a/dracut.usage.asc b/dracut.usage.asc
5c6c2a
index 15dc2440..45cbf120 100644
712866
--- a/dracut.usage.asc
712866
+++ b/dracut.usage.asc
712866
@@ -37,10 +37,14 @@ 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
+root filesystem, without recreating the initramfs image.
712866
+
712866
+[NOTE]
712866
+===============================
712866
+On RHEL-7 the hostonly mode is the default mode. Generic "non-hostonly" images
712866
+are created, if the dracut-config-generic rpm is installed. The rescue kernel
712866
+entry in the bootloader menu is also a generic image.
712866
+===============================
712866
 
712866
 === Inspecting the Contents
712866
 To see the contents of the image created by dracut, you can use the lsinitrd
712866
@@ -99,8 +103,9 @@ 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/grub2/grub.cfg_, if
712866
-grub is your bootloader and it also can be edited in the real boot process in
712866
+The kernel command line usually can be configured in _/boot/grub2/grub.cfg_
712866
+(or _/boot/efi/EFI/redhat/grub.cfg_ for EFI systems), if
712866
+grub2 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
@@ -325,7 +330,8 @@ stick and mount that. Then you can store the output for later inspection.
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. _/boot/grub2/grub.cfg_) or from _/proc/cmdline_.
712866
+configuration file (e.g. _/boot/grub2/grub.cfg_ (or _/boot/efi/EFI/redhat/grub.cfg_ for EFI systems))
712866
+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
@@ -359,49 +365,17 @@ 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 _/boot/grub2/grub.cfg_ 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 _/boot/grub2/grub.cfg_, add the following boot arguemnts to the ''kernel''
712866
+. In _/boot/grub2/grub.cfg_ (or _/boot/efi/EFI/redhat/grub.cfg_ for EFI systems),
712866
+add the following boot arguments to the ''linux16''
712866
 line:
712866
 +
712866
 ----
712866
 console=tty0 console=ttyS0,9600
712866
 ----
712866
 +
712866
-. When finished, the _/boot/grub2/grub.cfg_ 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
@@ -410,20 +384,18 @@ 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. _/boot/grub2/grub.cfg_)
712866
+(e.g. _/boot/grub2/grub.cfg_ (or _/boot/efi/EFI/redhat/grub.cfg_ for EFI systems))
712866
 . Remove the boot arguments ''rhgb'' and ''quiet''
712866
 +
712866
-A sample _/boot/grub2/grub.cfg_ bootloader configuration file is listed below.
712866
+A sample _grub.cfg_ bootloader configuration file snippet 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
+menuentry 'Red Hat Enterprise Linux Server (3.10.0-308.el7.x86_64) 7.0 (Maipo)' […] {
712866
+  […]
712866
+  linux16 /vmlinuz-3.10.0-308.el7.x86_64 ro root=/dev/mapper/vg_uc1-lv_root console=tty0 rd.shell
712866
+  initrd16 /initramfs-3.10.0-308.el7.x86_64.img
712866
+  […]
712866
+}
712866
 ----
712866
 +
712866
 . If system boot fails, you will be dropped into a shell as seen in the example