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