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

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