Blame SOURCES/0337-dracut.usage.asc-update-man-page.patch

18971c
From c850879b862058a644a05f8fe2fc2206e0e317e8 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Thu, 3 Sep 2015 16:25:23 +0200
18971c
Subject: [PATCH] dracut.usage.asc: update man page
18971c
18971c
- clarify grub2 config for debugging
18971c
- clarify hostonly mode
18971c
---
18971c
 dracut.usage.asc | 74 +++++++++++++++---------------------------------
18971c
 1 file changed, 23 insertions(+), 51 deletions(-)
18971c
18971c
diff --git a/dracut.usage.asc b/dracut.usage.asc
18971c
index 15dc2440..45cbf120 100644
18971c
--- a/dracut.usage.asc
18971c
+++ b/dracut.usage.asc
18971c
@@ -37,10 +37,14 @@ the --hostonly or -H option. Using this option, the resulting image will
18971c
 contain only those dracut modules, kernel modules and filesystems, which are
18971c
 needed to boot this specific machine. This has the drawback, that you can't put
18971c
 the disk on another controller or machine, and that you can't switch to another
18971c
-root filesystem, without recreating the initramfs image. The usage of the
18971c
---hostonly option is only for experts and you will have to keep the broken
18971c
-pieces. At least keep a copy of a general purpose image (and corresponding
18971c
-kernel) as a fallback to rescue your system.
18971c
+root filesystem, without recreating the initramfs image.
18971c
+
18971c
+[NOTE]
18971c
+===============================
18971c
+On RHEL-7 the hostonly mode is the default mode. Generic "non-hostonly" images
18971c
+are created, if the dracut-config-generic rpm is installed. The rescue kernel
18971c
+entry in the bootloader menu is also a generic image.
18971c
+===============================
18971c
 
18971c
 === Inspecting the Contents
18971c
 To see the contents of the image created by dracut, you can use the lsinitrd
18971c
@@ -99,8 +103,9 @@ raid with encryption and LVM on top), as long as you specify the correct
18971c
 filesystem LABEL or UUID on the kernel command line for your root device, dracut
18971c
 will find it and boot from it.
18971c
 
18971c
-The kernel command line usually can be configured in _/boot/grub2/grub.cfg_, if
18971c
-grub is your bootloader and it also can be edited in the real boot process in
18971c
+The kernel command line usually can be configured in _/boot/grub2/grub.cfg_
18971c
+(or _/boot/efi/EFI/redhat/grub.cfg_ for EFI systems), if
18971c
+grub2 is your bootloader and it also can be edited in the real boot process in
18971c
 the grub menu.
18971c
 
18971c
 The kernel command line can also be provided by the dhcp server with the
18971c
@@ -325,7 +330,8 @@ stick and mount that. Then you can store the output for later inspection.
18971c
 In all cases, the following should be mentioned and attached to your bug report:
18971c
 
18971c
 * The exact kernel command-line used. Typically from the bootloader
18971c
-configuration file (e.g. _/boot/grub2/grub.cfg_) or from _/proc/cmdline_.
18971c
+configuration file (e.g. _/boot/grub2/grub.cfg_ (or _/boot/efi/EFI/redhat/grub.cfg_ for EFI systems))
18971c
+or from _/proc/cmdline_.
18971c
 * A copy of your disk partition information from _/etc/fstab_, which might be
18971c
 obtained booting an old working initramfs or a rescue medium.
18971c
 * Turn on dracut debugging (see _the 'debugging dracut' section_), and attach
18971c
@@ -359,49 +365,17 @@ Successfully debugging dracut will require some form of console
18971c
 logging during the system boot.  This section documents configuring a
18971c
 serial console connection to record boot messages.
18971c
 
18971c
-. First, enable serial console output for both the kernel and the bootloader.
18971c
-. Open the file _/boot/grub2/grub.cfg_ for editing. Below the line ''timeout=5'', add
18971c
-the following:
18971c
-+
18971c
-----
18971c
-serial --unit=0 --speed=9600
18971c
-terminal --timeout=5 serial console
18971c
-----
18971c
-+
18971c
-. Also in _/boot/grub2/grub.cfg_, add the following boot arguemnts to the ''kernel''
18971c
+. In _/boot/grub2/grub.cfg_ (or _/boot/efi/EFI/redhat/grub.cfg_ for EFI systems),
18971c
+add the following boot arguments to the ''linux16''
18971c
 line:
18971c
 +
18971c
 ----
18971c
 console=tty0 console=ttyS0,9600
18971c
 ----
18971c
 +
18971c
-. When finished, the _/boot/grub2/grub.cfg_ file should look similar to the example
18971c
-below.
18971c
-+
18971c
-----
18971c
-default=0
18971c
-timeout=5
18971c
-serial --unit=0 --speed=9600
18971c
-terminal --timeout=5 serial console
18971c
-title Fedora (2.6.29.5-191.fc11.x86_64)
18971c
-  root (hd0,0)
18971c
-  kernel /vmlinuz-2.6.29.5-191.fc11.x86_64 ro root=/dev/mapper/vg_uc1-lv_root console=tty0 console=ttyS0,9600
18971c
-  initrd /dracut-2.6.29.5-191.fc11.x86_64.img
18971c
-----
18971c
-+
18971c
 . More detailed information on how to configure the kernel for console output
18971c
 can be found at
18971c
 http://www.faqs.org/docs/Linux-HOWTO/Remote-Serial-Console-HOWTO.html#CONFIGURE-KERNEL.
18971c
-. Redirecting non-interactive output
18971c
-+
18971c
---
18971c
-NOTE: You can redirect all non-interactive output to _/dev/kmsg_ and the kernel
18971c
-will put it out on the console when it reaches the kernel buffer by doing
18971c
-
18971c
-----
18971c
-# exec >/dev/kmsg 2>&1 
18971c
-----
18971c
---
18971c
 
18971c
 [[using-the-dracut-shell]]
18971c
 ==== Using the dracut shell
18971c
@@ -410,20 +384,18 @@ dracut offers a shell for interactive debugging in the event dracut fails to
18971c
 locate your root filesystem. To enable the shell:
18971c
 
18971c
 . Add the boot parameter ''rd.shell'' to your bootloader configuration file
18971c
-(e.g. _/boot/grub2/grub.cfg_)
18971c
+(e.g. _/boot/grub2/grub.cfg_ (or _/boot/efi/EFI/redhat/grub.cfg_ for EFI systems))
18971c
 . Remove the boot arguments ''rhgb'' and ''quiet''
18971c
 +
18971c
-A sample _/boot/grub2/grub.cfg_ bootloader configuration file is listed below.
18971c
+A sample _grub.cfg_ bootloader configuration file snippet is listed below.
18971c
 +
18971c
 ----
18971c
-default=0
18971c
-timeout=5
18971c
-serial --unit=0 --speed=9600
18971c
-terminal --timeout=5 serial console
18971c
-title Fedora (2.6.29.5-191.fc11.x86_64)
18971c
-  root (hd0,0)
18971c
-  kernel /vmlinuz-2.6.29.5-191.fc11.x86_64 ro root=/dev/mapper/vg_uc1-lv_root console=tty0 rd.shell
18971c
-  initrd /dracut-2.6.29.5-191.fc11.x86_64.img
18971c
+menuentry 'Red Hat Enterprise Linux Server (3.10.0-308.el7.x86_64) 7.0 (Maipo)' […] {
18971c
+  […]
18971c
+  linux16 /vmlinuz-3.10.0-308.el7.x86_64 ro root=/dev/mapper/vg_uc1-lv_root console=tty0 rd.shell
18971c
+  initrd16 /initramfs-3.10.0-308.el7.x86_64.img
18971c
+  […]
18971c
+}
18971c
 ----
18971c
 +
18971c
 . If system boot fails, you will be dropped into a shell as seen in the example