Blame SOURCES/0025-Reorganize-grubby-man-page-1232168.patch

cca0c4
From 9073de7c059fcc9fd5ca837068d96cb0246f3c99 Mon Sep 17 00:00:00 2001
cca0c4
From: Robert Marshall <rmarshall@redhat.com>
cca0c4
Date: Fri, 1 Jul 2016 14:03:38 -0400
cca0c4
Subject: [PATCH 25/55] Reorganize grubby man page (#1232168)
cca0c4
cca0c4
Broke the grubby man page into clearer sections and re-organized the
cca0c4
content by general use case for easier reading.
cca0c4
cca0c4
Related: rhbz#1232168
cca0c4
---
cca0c4
 grubby.8 | 220 ++++++++++++++++++++++++++++++-------------------------
cca0c4
 1 file changed, 120 insertions(+), 100 deletions(-)
cca0c4
cca0c4
diff --git a/grubby.8 b/grubby.8
cca0c4
index f1bfb9336e9..a3033d87254 100644
cca0c4
--- a/grubby.8
cca0c4
+++ b/grubby.8
cca0c4
@@ -1,15 +1,18 @@
cca0c4
 .TH GRUBBY 8 "Tue Jan 18 2005"
cca0c4
+
cca0c4
 .SH NAME
cca0c4
+
cca0c4
 grubby \- command line tool for configuring grub, lilo, elilo, yaboot and zipl
cca0c4
 
cca0c4
 .SH SYNOPSIS
cca0c4
-\fBgrubby\fR [--add-kernel=\fIkernel-path\fR] [--args=\fIargs\fR] 
cca0c4
-       [--bad-image-okay] [--boot-filesystem=\fIbootfs\fR] 
cca0c4
+
cca0c4
+\fBgrubby\fR [--add-kernel=\fIkernel-path\fR] [--args=\fIargs\fR]
cca0c4
+       [--bad-image-okay] [--boot-filesystem=\fIbootfs\fR]
cca0c4
        [--bootloader-probe] [--config-file \fIpath\fR] [--copy-default]
cca0c4
        [--debug] [--default-kernel] [--default-index] [--default-title]
cca0c4
        [--devtree=\fIdevicetree.dtb\fR] [--set-index=\fIentry-index\fR]
cca0c4
        [--grub] [--lilo] [--yaboot] [--silo] [--zipl]
cca0c4
-       [--info=\fIkernel-path\fR] [--initrd=\fIinitrd-path\fR] 
cca0c4
+       [--info=\fIkernel-path\fR] [--initrd=\fIinitrd-path\fR]
cca0c4
        [--make-default] [-o path] [--version]
cca0c4
        [--remove-kernel=\fIkernel-path\fR] [--remove-args=\fIargs\fR]
cca0c4
        [--set-default=\fIkernel-path\fR] [--set-default-index=\fIentry-index\fR]
cca0c4
@@ -18,12 +21,17 @@ grubby \- command line tool for configuring grub, lilo, elilo, yaboot and zipl
cca0c4
        [--remove-mbargs=\fIargs\fR]
cca0c4
 
cca0c4
 .SH DESCRIPTION
cca0c4
+
cca0c4
+.SS General Information
cca0c4
+
cca0c4
 \fBgrubby\fR is a command line tool for updating and displaying information
cca0c4
 about the configuration files for the \fBgrub\fR, \fBlilo\fR, \fBelilo\fR
cca0c4
 (ia64), \fByaboot\fR (powerpc) and \fBzipl\fR (s390) boot loaders. It
cca0c4
 is primarily designed to be used from scripts which install new
cca0c4
 kernels and need to find information about the current boot environment.
cca0c4
 
cca0c4
+.SS Architecture Support
cca0c4
+
cca0c4
 On BIOS-based Intel x86 platforms, \fBgrub2\fR is the default bootloader and
cca0c4
 the configuration file is in \fB/boot/grub2/grub.cfg\fR.  On UEFI-based Intel
cca0c4
 x86 platforms, \fBgrub2\fR is the default bootloader, and the configuration
cca0c4
@@ -35,6 +43,8 @@ config stored in \fB/boot/grub2/grub.cfg\fR. The earlier Power7 systems use \fBy
cca0c4
 parsing and the configuration file should be in \fB/etc/yaboot.conf\fR.  On
cca0c4
 s390 platforms the \fBzipl bootloader\fR will read from \fB/etc/zipl.conf\fR.
cca0c4
 
cca0c4
+.SS Special Arguments
cca0c4
+
cca0c4
 There are a number of ways to specify the kernel used for \fB-\-info\fR,
cca0c4
 \fB-\-remove-kernel\fR, and \fB-\-update-kernel\fR. Specificying \fBDEFAULT\fR
cca0c4
 or \fBALL\fR selects the default entry and all of the entries, respectively.
cca0c4
@@ -44,13 +54,24 @@ be specified by using \fBTITLE=\fItitle\fR as the argument; all entries
cca0c4
 with that title are used.
cca0c4
 
cca0c4
 .SH OPTIONS
cca0c4
+
cca0c4
+.SS Basic Options
cca0c4
+
cca0c4
 .TP
cca0c4
 \fB-\-add-kernel\fR=\fIkernel-path\fR
cca0c4
 Add a new boot entry for the kernel located at \fIkernel-path\fR.
cca0c4
 
cca0c4
 .TP
cca0c4
-\fB-\-set-index\fR=\fIentry-index\fR
cca0c4
-Set the position at which to add a new entry created with \fB-\-add-kernel\fR.
cca0c4
+\fB-\-remove-kernel\fR=\fIkernel-path\fR
cca0c4
+Removes all boot entries which match \fIkernel-path\fR. This may be used
cca0c4
+along with -\-add-kernel, in which case the new kernel being added will
cca0c4
+never be removed.
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-update-kernel\fR=\fIkernel-path\fR
cca0c4
+The entries for kernels matching \fRkernel-path\fR are updated. Currently
cca0c4
+the only items that can be updated is the kernel argument list, which is
cca0c4
+modified via the \fB-\-args\fR and \fB-\-remove-args\fR options.
cca0c4
 
cca0c4
 .TP
cca0c4
 \fB-\-args\fR=\fIkernel-args\fR
cca0c4
@@ -65,38 +86,11 @@ file has special handling for specifying the root filesystem (like
cca0c4
 lilo.conf does).
cca0c4
 
cca0c4
 .TP
cca0c4
-\fB-\-bad-image-okay\fR
cca0c4
-When \fBgrubby\fR is looking for a entry to use for something (such
cca0c4
-as a template or a default boot entry) it uses sanity checks, such as
cca0c4
-ensuring that the kernel exists in the filesystem, to make sure
cca0c4
-entries that obviously won't work aren't selected. This option overrides
cca0c4
-that behavior, and is designed primarily for testing.
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-boot-filesystem\fR=\fIbootfs\fR
cca0c4
-The \fBgrub\fR boot loader expects file paths listed in it's configuration
cca0c4
-path to be relative to the top of the filesystem they are on, rather then
cca0c4
-relative to the current root filesystem. By default \fBgrubby\fR searches
cca0c4
-the list of currently mounted filesystems to determine this. If this option
cca0c4
-is given \fBgrubby\fR acts as if the specified filesystem was the filesystem
cca0c4
-containing the kernel (this option is designed primarily for testing).
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-bootloader-probe\fR
cca0c4
-\fBgrubby\fR tries to determine if \fBgrub\fR or \fBlilo\fR is currently 
cca0c4
-installed. When one of those bootloaders is found the name of that bootloader
cca0c4
-is displayed on stdout.  Both could be installed (on different devices), and
cca0c4
-grubby will print out the names of both bootloaders, one per line. The probe
cca0c4
-for \fBgrub\fR requires a commented out boot directive \fBgrub.conf\fR
cca0c4
-identical to the standard directive in the lilo configuration file. If this
cca0c4
-is not present \fBgrubby\fR will assume grub is not installed (note 
cca0c4
-that \fBanaconda\fR places this directive in \fBgrub.conf\fR files it creates).
cca0c4
-This option is only available on ia32 platforms. 
cca0c4
-
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-config-file\fR=\fIpath\fR
cca0c4
-Use \fIpath\fR as the configuration file rather then the default.
cca0c4
+\fB-\-remove-args\fR=\fIkernel-args\fR
cca0c4
+The arguments specified by \fIkernel-args\fR are removed from the
cca0c4
+kernels specified by \fB-\-update-kernel\fR. The \fBroot\fR argument
cca0c4
+gets special handling for configuration files that support separate root
cca0c4
+filesystem configuration.
cca0c4
 
cca0c4
 .TP
cca0c4
 \fB-\-copy-default\fR
cca0c4
@@ -104,10 +98,41 @@ Use \fIpath\fR as the configuration file rather then the default.
cca0c4
 root device) as possible from the current default kernel. The kernel path
cca0c4
 and initrd path will never be copied.
cca0c4
 
cca0c4
+.TP
cca0c4
+\fB-\-title\fR=\fIentry-title\fR
cca0c4
+When a new kernel entry is added \fIentry-title\fR is used as the title
cca0c4
+(\fBlilo\fR label) for the entry. If \fIentry-title\fR is longer then maximum
cca0c4
+length allowed by the bootloader (15 for lilo, unlimited for grub and elilo)
cca0c4
+the title is shortened to a (unique) entry.
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-initrd\fR=\fIinitrd-path\fR
cca0c4
+Use \fIinitrd-path\fR as the path to an initial ram disk for a new kernel
cca0c4
+being added.
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-set-default\fR=\fIkernel-path\fR
cca0c4
+The first entry which boots the specified kernel is made the default
cca0c4
+boot entry.
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-set-default-index\fR=\fIentry-index\fR
cca0c4
+Makes the given entry number the default boot entry.
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-make-default\fR
cca0c4
+Make the new kernel entry being added the default entry.
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-set-index\fR=\fIentry-index\fR
cca0c4
+Set the position at which to add a new entry created with \fB-\-add-kernel\fR.
cca0c4
+
cca0c4
 .TP
cca0c4
 \fB-\-debug\fR
cca0c4
 Display extra debugging information for failures.
cca0c4
 
cca0c4
+.SS Display Options
cca0c4
+
cca0c4
 .TP
cca0c4
 \fB-\-default-kernel\fR
cca0c4
 Display the full path to the current default kernel and exit.
cca0c4
@@ -121,9 +146,26 @@ Display the numeric index of the current default boot entry and exit.
cca0c4
 Display the title of the current default boot entry and exit.
cca0c4
 
cca0c4
 .TP
cca0c4
-\fB-\-devtree\fR=\fIpath\fR
cca0c4
-Use \fIpath\fR for device tree path in place of the path of any devicetree
cca0c4
-directive found in the template stanza.
cca0c4
+\fB-\-info\fR=\fIkernel-path\fR
cca0c4
+Display information on all boot entries which match \fIkernel-path\fR. I
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-bootloader-probe\fR
cca0c4
+\fBgrubby\fR tries to determine if \fBgrub\fR or \fBlilo\fR is currently
cca0c4
+installed. When one of those bootloaders is found the name of that bootloader
cca0c4
+is displayed on stdout.  Both could be installed (on different devices), and
cca0c4
+grubby will print out the names of both bootloaders, one per line. The probe
cca0c4
+for \fBgrub\fR requires a commented out boot directive \fBgrub.conf\fR
cca0c4
+identical to the standard directive in the lilo configuration file. If this
cca0c4
+is not present \fBgrubby\fR will assume grub is not installed (note
cca0c4
+that \fBanaconda\fR places this directive in \fBgrub.conf\fR files it creates).
cca0c4
+This option is only available on ia32 platforms.
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-version\fR
cca0c4
+Display the version of \fBgrubby\fR being run and then exit immediately.
cca0c4
+
cca0c4
+.SS Output Format Options
cca0c4
 
cca0c4
 .TP
cca0c4
 \fB-\-elilo\fR
cca0c4
@@ -134,62 +176,10 @@ Use an \fBelilo\fR style configuration file.
cca0c4
 Use a \fBgrub\fR style configuration file instead of \fBlilo\fR style. This
cca0c4
 is the default on ia32 platforms.
cca0c4
 
cca0c4
-.TP
cca0c4
-\fB-\-info\fR=\fIkernel-path\fR
cca0c4
-Display information on all boot entries which match \fIkernel-path\fR. I
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-initrd\fR=\fIinitrd-path\fR
cca0c4
-Use \fIinitrd-path\fR as the path to an initial ram disk for a new kernel
cca0c4
-being added.
cca0c4
-
cca0c4
 .TP
cca0c4
 \fB-\-lilo\fR
cca0c4
 Use a \fBlilo\fR style configuration file.
cca0c4
 
cca0c4
-.TP
cca0c4
-\fB-\-make-default\fR
cca0c4
-Make the new kernel entry being added the default entry.
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-remove-args\fR=\fIkernel-args\fR
cca0c4
-The arguments specified by \fIkernel-args\fR are removed from the 
cca0c4
-kernels specified by \fB-\-update-kernel\fR. The \fBroot\fR argument
cca0c4
-gets special handling for configuration files that support separate root
cca0c4
-filesystem configuration.
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-remove-kernel\fR=\fIkernel-path\fR
cca0c4
-Removes all boot entries which match \fIkernel-path\fR. This may be used
cca0c4
-along with -\-add-kernel, in which case the new kernel being added will
cca0c4
-never be removed.
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-set-default\fR=\fIkernel-path\fR
cca0c4
-The first entry which boots the specified kernel is made the default
cca0c4
-boot entry.
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-set-default-index\fR=\fIentry-index\fR
cca0c4
-Makes the given entry number the default boot entry.
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-title\fR=\fIentry-title\fR
cca0c4
-When a new kernel entry is added \fIentry-title\fR is used as the title
cca0c4
-(\fBlilo\fR label) for the entry. If \fIentry-title\fR is longer then maximum
cca0c4
-length allowed by the bootloader (15 for lilo, unlimited for grub and elilo)
cca0c4
-the title is shortened to a (unique) entry.
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-update-kernel\fR=\fIkernel-path\fR
cca0c4
-The entries for kernels matching \fRkernel-path\fR are updated. Currently
cca0c4
-the only items that can be updated is the kernel argument list, which is
cca0c4
-modified via the \fB-\-args\fR and \fB-\-remove-args\fR options.
cca0c4
-
cca0c4
-.TP
cca0c4
-\fB-\-version\fR
cca0c4
-Display the version of \fBgrubby\fR being run and then exit immediately.
cca0c4
-
cca0c4
 .TP
cca0c4
 \fB-\-yaboot\fR
cca0c4
 Use an \fByaboot\fR style configuration file.
cca0c4
@@ -198,7 +188,35 @@ Use an \fByaboot\fR style configuration file.
cca0c4
 \fB-\-zipl\fR
cca0c4
 Use an \fBzipl\fR style configuration file.
cca0c4
 
cca0c4
-.SH MULTIBOOT OPTIONS
cca0c4
+.SS Override Options
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-bad-image-okay\fR
cca0c4
+When \fBgrubby\fR is looking for a entry to use for something (such
cca0c4
+as a template or a default boot entry) it uses sanity checks, such as
cca0c4
+ensuring that the kernel exists in the filesystem, to make sure
cca0c4
+entries that obviously won't work aren't selected. This option overrides
cca0c4
+that behavior, and is designed primarily for testing.
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-boot-filesystem\fR=\fIbootfs\fR
cca0c4
+The \fBgrub\fR boot loader expects file paths listed in it's configuration
cca0c4
+path to be relative to the top of the filesystem they are on, rather then
cca0c4
+relative to the current root filesystem. By default \fBgrubby\fR searches
cca0c4
+the list of currently mounted filesystems to determine this. If this option
cca0c4
+is given \fBgrubby\fR acts as if the specified filesystem was the filesystem
cca0c4
+containing the kernel (this option is designed primarily for testing).
cca0c4
+
cca0c4
+.TP
cca0c4
+\fB-\-config-file\fR=\fIpath\fR
cca0c4
+Use \fIpath\fR as the configuration file rather then the default.
cca0c4
+
cca0c4
+\fB-\-devtree\fR=\fIpath\fR
cca0c4
+Use \fIpath\fR for device tree path in place of the path of any devicetree
cca0c4
+directive found in the template stanza.
cca0c4
+
cca0c4
+.SS Multiboot Options
cca0c4
+
cca0c4
 The Multiboot Specification provides a genreic interface for boot
cca0c4
 loaders and operating systems.  It is supported by the GRUB bootloader.
cca0c4
 
cca0c4
@@ -210,34 +228,36 @@ Add a new boot entry for the multiboot kernel located at
cca0c4
 
cca0c4
 .TP
cca0c4
 \fB-\-remove-multiboot\fR=\fImultiboot-path\fR
cca0c4
-Removes all boot entries which match \fImultiboot-path\fR. 
cca0c4
+Removes all boot entries which match \fImultiboot-path\fR.
cca0c4
 
cca0c4
 .TP
cca0c4
 \fB-\-mbargs\fR=\fImultiboot-args\fR
cca0c4
-When a new multiboot kernel is added, this specifies the command line 
cca0c4
-arguments which should be passed to that kernel by default 
cca0c4
+When a new multiboot kernel is added, this specifies the command line
cca0c4
+arguments which should be passed to that kernel by default
cca0c4
 When \fB-\-update-kernel\fR is used, this specifies new arguments to add
cca0c4
 to the argument list. Multiple, space separated arguments may be used. If
cca0c4
-an argument already exists the new value replaces the old values. 
cca0c4
+an argument already exists the new value replaces the old values.
cca0c4
 
cca0c4
 .TP
cca0c4
 \fB-\-remove-mbargs\fR=\fImultiboot-args\fR
cca0c4
-The arguments specified by \fImultiboot-args\fR are removed from the 
cca0c4
-kernels specified by \fB-\-update-kernel\fR. 
cca0c4
-
cca0c4
+The arguments specified by \fImultiboot-args\fR are removed from the
cca0c4
+kernels specified by \fB-\-update-kernel\fR.
cca0c4
 
cca0c4
 .SH "BUGS"
cca0c4
+
cca0c4
 The command line syntax is more than a little baroque. This probably
cca0c4
 won't be fixed as \fBgrubby\fR is only intended to be called from shell
cca0c4
 scripts which can get it right.
cca0c4
 
cca0c4
 .SH "SEE ALSO"
cca0c4
+
cca0c4
 .BR grub (8),
cca0c4
 .BR lilo (8),
cca0c4
 .BR yaboot (8),
cca0c4
 .BR mkinitrd (8)
cca0c4
 
cca0c4
 .SH AUTHORS
cca0c4
+
cca0c4
 .nf
cca0c4
 Erik Troan
cca0c4
 Jeremy Katz
cca0c4
-- 
cca0c4
2.17.1
cca0c4