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