nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0055-Make-our-info-pages-say-grub2-where-appropriate.patch

5593c8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
5593c8
From: Peter Jones <pjones@redhat.com>
5593c8
Date: Tue, 9 Jul 2019 12:59:58 +0200
5593c8
Subject: [PATCH] Make our info pages say "grub2" where appropriate.
5593c8
5593c8
This needs to be hooked up to --program-transform=, but I haven't had
5593c8
time.
5593c8
5593c8
Signed-off-by: Peter Jones <pjones@redhat.com>
5593c8
---
5593c8
 docs/grub-dev.texi |   4 +-
5593c8
 docs/grub.texi     | 321 ++++++++++++++++++++++++++++-------------------------
5593c8
 2 files changed, 171 insertions(+), 154 deletions(-)
5593c8
5593c8
diff --git a/docs/grub-dev.texi b/docs/grub-dev.texi
1c6ba0
index 6c629a23e2..19f708ee66 100644
5593c8
--- a/docs/grub-dev.texi
5593c8
+++ b/docs/grub-dev.texi
5593c8
@@ -1,7 +1,7 @@
5593c8
 \input texinfo
5593c8
 @c -*-texinfo-*-
5593c8
 @c %**start of header
5593c8
-@setfilename grub-dev.info
5593c8
+@setfilename grub2-dev.info
5593c8
 @include version-dev.texi
5593c8
 @settitle GNU GRUB Developers Manual @value{VERSION}
5593c8
 @c Unify all our little indices for now.
5593c8
@@ -32,7 +32,7 @@ Invariant Sections.
5593c8
 
5593c8
 @dircategory Kernel
5593c8
 @direntry
5593c8
-* grub-dev: (grub-dev).                 The GRand Unified Bootloader Dev
5593c8
+* grub2-dev: (grub2-dev).                 The GRand Unified Bootloader Dev
5593c8
 @end direntry
5593c8
 
5593c8
 @setchapternewpage odd
5593c8
diff --git a/docs/grub.texi b/docs/grub.texi
1c6ba0
index 69f08d289f..0615d0ed97 100644
5593c8
--- a/docs/grub.texi
5593c8
+++ b/docs/grub.texi
5593c8
@@ -1,7 +1,7 @@
5593c8
 \input texinfo
5593c8
 @c -*-texinfo-*-
5593c8
 @c %**start of header
5593c8
-@setfilename grub.info
5593c8
+@setfilename grub2.info
5593c8
 @include version.texi
5593c8
 @settitle GNU GRUB Manual @value{VERSION}
5593c8
 @c Unify all our little indices for now.
5593c8
@@ -32,15 +32,15 @@ Invariant Sections.
5593c8
 
5593c8
 @dircategory Kernel
5593c8
 @direntry
5593c8
-* GRUB: (grub).                 The GRand Unified Bootloader
5593c8
-* grub-install: (grub)Invoking grub-install.    Install GRUB on your drive
5593c8
-* grub-mkconfig: (grub)Invoking grub-mkconfig.  Generate GRUB configuration
5593c8
-* grub-mkpasswd-pbkdf2: (grub)Invoking grub-mkpasswd-pbkdf2.
5593c8
-* grub-mkrelpath: (grub)Invoking grub-mkrelpath.
5593c8
-* grub-mkrescue: (grub)Invoking grub-mkrescue.  Make a GRUB rescue image
5593c8
-* grub-mount: (grub)Invoking grub-mount.        Mount a file system using GRUB
5593c8
-* grub-probe: (grub)Invoking grub-probe.        Probe device information
5593c8
-* grub-script-check: (grub)Invoking grub-script-check.
5593c8
+* GRUB2: (grub2).                 The GRand Unified Bootloader
5593c8
+* grub2-install: (grub2)Invoking grub2-install.    Install GRUB on your drive
5593c8
+* grub2-mkconfig: (grub2)Invoking grub2-mkconfig.  Generate GRUB configuration
5593c8
+* grub2-mkpasswd-pbkdf2: (grub2)Invoking grub2-mkpasswd-pbkdf2.
5593c8
+* grub2-mkrelpath: (grub2)Invoking grub2-mkrelpath.
5593c8
+* grub2-mkrescue: (grub2)Invoking grub2-mkrescue.  Make a GRUB rescue image
5593c8
+* grub2-mount: (grub2)Invoking grub2-mount.        Mount a file system using GRUB
5593c8
+* grub2-probe: (grub2)Invoking grub2-probe.        Probe device information
5593c8
+* grub2-script-check: (grub2)Invoking grub2-script-check.
5593c8
 @end direntry
5593c8
 
5593c8
 @setchapternewpage odd
5593c8
@@ -103,15 +103,15 @@ This edition documents version @value{VERSION}.
5593c8
 * Platform-specific operations:: Platform-specific operations
5593c8
 * Supported kernels::           The list of supported kernels
5593c8
 * Troubleshooting::             Error messages produced by GRUB
5593c8
-* Invoking grub-install::       How to use the GRUB installer
5593c8
-* Invoking grub-mkconfig::      Generate a GRUB configuration file
5593c8
-* Invoking grub-mkpasswd-pbkdf2::
5593c8
+* Invoking grub2-install::       How to use the GRUB installer
5593c8
+* Invoking grub2-mkconfig::      Generate a GRUB configuration file
5593c8
+* Invoking grub2-mkpasswd-pbkdf2::
5593c8
                                 Generate GRUB password hashes
5593c8
-* Invoking grub-mkrelpath::     Make system path relative to its root
5593c8
-* Invoking grub-mkrescue::      Make a GRUB rescue image
5593c8
-* Invoking grub-mount::         Mount a file system using GRUB
5593c8
-* Invoking grub-probe::         Probe device information for GRUB
5593c8
-* Invoking grub-script-check::  Check GRUB script file for syntax errors
5593c8
+* Invoking grub2-mkrelpath::     Make system path relative to its root
5593c8
+* Invoking grub2-mkrescue::      Make a GRUB rescue image
5593c8
+* Invoking grub2-mount::         Mount a file system using GRUB
5593c8
+* Invoking grub2-probe::         Probe device information for GRUB
5593c8
+* Invoking grub2-script-check::  Check GRUB script file for syntax errors
5593c8
 * Obtaining and Building GRUB:: How to obtain and build GRUB
5593c8
 * Reporting bugs::              Where you should send a bug report
5593c8
 * Future::                      Some future plans on GRUB
5593c8
@@ -230,7 +230,7 @@ surprising.
5593c8
 
5593c8
 @item
5593c8
 @file{grub.cfg} is typically automatically generated by
5593c8
-@command{grub-mkconfig} (@pxref{Simple configuration}).  This makes it
5593c8
+@command{grub2-mkconfig} (@pxref{Simple configuration}).  This makes it
5593c8
 easier to handle versioned kernel upgrades.
5593c8
 
5593c8
 @item
5593c8
@@ -244,7 +244,7 @@ scripting language: variables, conditionals, and loops are available.
5593c8
 @item
5593c8
 A small amount of persistent storage is available across reboots, using the
5593c8
 @command{save_env} and @command{load_env} commands in GRUB and the
5593c8
-@command{grub-editenv} utility.  This is not available in all configurations
5593c8
+@command{grub2-editenv} utility.  This is not available in all configurations
5593c8
 (@pxref{Environment block}).
5593c8
 
5593c8
 @item
5593c8
@@ -549,7 +549,7 @@ On OS which have device nodes similar to Unix-like OS GRUB tools use the
5593c8
 OS name. E.g. for GNU/Linux:
5593c8
 
5593c8
 @example
5593c8
-# @kbd{grub-install /dev/sda}
5593c8
+# @kbd{grub2-install /dev/sda}
5593c8
 @end example
5593c8
 
5593c8
 On AROS we use another syntax. For volumes:
5593c8
@@ -572,7 +572,7 @@ For disks we use syntax:
5593c8
 E.g.
5593c8
 
5593c8
 @example
5593c8
-# @kbd{grub-install //:ata.device/0/0}
5593c8
+# @kbd{grub2-install //:ata.device/0/0}
5593c8
 @end example
5593c8
 
5593c8
 On Windows we use UNC path. For volumes it's typically
5593c8
@@ -599,7 +599,7 @@ For disks it's
5593c8
 E.g.
5593c8
 
5593c8
 @example
5593c8
-# @kbd{grub-install \\?\PhysicalDrive0}
5593c8
+# @kbd{grub2-install \\?\PhysicalDrive0}
5593c8
 @end example
5593c8
 
5593c8
 Beware that you may need to further escape the backslashes depending on your
5593c8
@@ -609,7 +609,7 @@ When compiled with cygwin support then cygwin drive names are automatically
5593c8
 when needed. E.g.
5593c8
 
5593c8
 @example
5593c8
-# @kbd{grub-install /dev/sda}
5593c8
+# @kbd{grub2-install /dev/sda}
5593c8
 @end example
5593c8
 
5593c8
 @node Installation
5593c8
@@ -622,7 +622,7 @@ from the source tarball, or as a package for your OS.
5593c8
 
5593c8
 After you have done that, you need to install the boot loader on a
5593c8
 drive (floppy or hard disk) by using the utility
5593c8
-@command{grub-install} (@pxref{Invoking grub-install}) on a UNIX-like OS.
5593c8
+@command{grub2-install} (@pxref{Invoking grub2-install}) on a UNIX-like OS.
5593c8
 
5593c8
 GRUB comes with boot images, which are normally put in the directory
5593c8
 @file{/usr/lib/grub/<cpu>-<platform>} (for BIOS-based machines
5593c8
@@ -633,22 +633,22 @@ loader needs to find them (usually @file{/boot}) will be called
5593c8
 the @dfn{boot directory}.
5593c8
 
5593c8
 @menu
5593c8
-* Installing GRUB using grub-install::
5593c8
+* Installing GRUB using grub2-install::
5593c8
 * Making a GRUB bootable CD-ROM::
5593c8
 * Device map::
5593c8
 * BIOS installation::
5593c8
 @end menu
5593c8
 
5593c8
 
5593c8
-@node Installing GRUB using grub-install
5593c8
-@section Installing GRUB using grub-install
5593c8
+@node Installing GRUB using grub2-install
5593c8
+@section Installing GRUB using grub2-install
5593c8
 
5593c8
 For information on where GRUB should be installed on PC BIOS platforms,
5593c8
 @pxref{BIOS installation}.
5593c8
 
5593c8
 In order to install GRUB under a UNIX-like OS (such
5593c8
-as @sc{gnu}), invoke the program @command{grub-install} (@pxref{Invoking
5593c8
-grub-install}) as the superuser (@dfn{root}).
5593c8
+as @sc{gnu}), invoke the program @command{grub2-install} (@pxref{Invoking
5593c8
+grub2-install}) as the superuser (@dfn{root}).
5593c8
 
5593c8
 The usage is basically very simple. You only need to specify one
5593c8
 argument to the program, namely, where to install the boot loader. The
5593c8
@@ -657,13 +657,13 @@ For example, under Linux the following will install GRUB into the MBR
5593c8
 of the first IDE disk:
5593c8
 
5593c8
 @example
5593c8
-# @kbd{grub-install /dev/sda}
5593c8
+# @kbd{grub2-install /dev/sda}
5593c8
 @end example
5593c8
 
5593c8
 Likewise, under GNU/Hurd, this has the same effect:
5593c8
 
5593c8
 @example
5593c8
-# @kbd{grub-install /dev/hd0}
5593c8
+# @kbd{grub2-install /dev/hd0}
5593c8
 @end example
5593c8
 
5593c8
 But all the above examples assume that GRUB should put images under
5593c8
@@ -677,7 +677,7 @@ boot floppy with a filesystem. Here is an example:
5593c8
 # @kbd{mke2fs /dev/fd0}
5593c8
 # @kbd{mount -t ext2 /dev/fd0 /mnt}
5593c8
 # @kbd{mkdir /mnt/boot}
5593c8
-# @kbd{grub-install --boot-directory=/mnt/boot /dev/fd0}
5593c8
+# @kbd{grub2-install --boot-directory=/mnt/boot /dev/fd0}
5593c8
 # @kbd{umount /mnt}
5593c8
 @end group
5593c8
 @end example
5593c8
@@ -689,30 +689,37 @@ floppy instead of exposing the USB drive as a hard disk (they call it
5593c8
 @example
5593c8
 # @kbd{losetup /dev/loop0 /dev/sdb1}
5593c8
 # @kbd{mount /dev/loop0 /mnt/usb}
5593c8
-# @kbd{grub-install --boot-directory=/mnt/usb/bugbios --force --allow-floppy /dev/loop0}
5593c8
+# @kbd{grub2-install --boot-directory=/mnt/usb/bugbios --force --allow-floppy /dev/loop0}
5593c8
 @end example
5593c8
 
5593c8
 This install doesn't conflict with standard install as long as they are in
5593c8
 separate directories.
5593c8
 
5593c8
+Note that @command{grub2-install} is actually just a shell script and the
5593c8
+real task is done by other tools such as @command{grub2-mkimage}. Therefore,
5593c8
+you may run those commands directly to install GRUB, without using
5593c8
+@command{grub2-install}. Don't do that, however, unless you are very familiar
5593c8
+with the internals of GRUB. Installing a boot loader on a running OS may be
5593c8
+extremely dangerous.
5593c8
+
5593c8
 On EFI systems for fixed disk install you have to mount EFI System Partition.
5593c8
 If you mount it at @file{/boot/efi} then you don't need any special arguments:
5593c8
 
5593c8
 @example
5593c8
-# @kbd{grub-install}
5593c8
+# @kbd{grub2-install}
5593c8
 @end example
5593c8
 
5593c8
 Otherwise you need to specify where your EFI System partition is mounted:
5593c8
 
5593c8
 @example
5593c8
-# @kbd{grub-install --efi-directory=/mnt/efi}
5593c8
+# @kbd{grub2-install --efi-directory=/mnt/efi}
5593c8
 @end example
5593c8
 
5593c8
 For removable installs you have to use @option{--removable} and specify both
5593c8
 @option{--boot-directory} and @option{--efi-directory}:
5593c8
 
5593c8
 @example
5593c8
-# @kbd{grub-install --efi-directory=/mnt/usb --boot-directory=/mnt/usb/boot --removable}
5593c8
+# @kbd{grub2-install --efi-directory=/mnt/usb --boot-directory=/mnt/usb/boot --removable}
5593c8
 @end example
5593c8
 
5593c8
 @node Making a GRUB bootable CD-ROM
5593c8
@@ -732,10 +739,10 @@ usually also need to include a configuration file @file{grub.cfg} and some
5593c8
 other GRUB modules.
5593c8
 
5593c8
 To make a simple generic GRUB rescue CD, you can use the
5593c8
-@command{grub-mkrescue} program (@pxref{Invoking grub-mkrescue}):
5593c8
+@command{grub2-mkrescue} program (@pxref{Invoking grub2-mkrescue}):
5593c8
 
5593c8
 @example
5593c8
-$ @kbd{grub-mkrescue -o grub.iso}
5593c8
+$ @kbd{grub2-mkrescue -o grub.iso}
5593c8
 @end example
5593c8
 
5593c8
 You will often need to include other files in your image. To do this, first
5593c8
@@ -758,7 +765,7 @@ directory @file{iso/}.
5593c8
 Finally, make the image:
5593c8
 
5593c8
 @example
5593c8
-$ @kbd{grub-mkrescue -o grub.iso iso}
5593c8
+$ @kbd{grub2-mkrescue -o grub.iso iso}
5593c8
 @end example
5593c8
 
5593c8
 This produces a file named @file{grub.iso}, which then can be burned
5593c8
@@ -774,7 +781,7 @@ storage devices.
5593c8
 @node Device map
5593c8
 @section The map between BIOS drives and OS devices
5593c8
 
5593c8
-If the device map file exists, the GRUB utilities (@command{grub-probe},
5593c8
+If the device map file exists, the GRUB utilities (@command{grub2-probe},
5593c8
 etc.) read it to map BIOS drives to OS devices.  This file consists of lines
5593c8
 like this:
5593c8
 
5593c8
@@ -1254,23 +1261,23 @@ need to write the whole thing by hand.
5593c8
 @node Simple configuration
5593c8
 @section Simple configuration handling
5593c8
 
5593c8
-The program @command{grub-mkconfig} (@pxref{Invoking grub-mkconfig})
5593c8
+The program @command{grub2-mkconfig} (@pxref{Invoking grub2-mkconfig})
5593c8
 generates @file{grub.cfg} files suitable for most cases.  It is suitable for
5593c8
 use when upgrading a distribution, and will discover available kernels and
5593c8
 attempt to generate menu entries for them.
5593c8
 
5593c8
-@command{grub-mkconfig} does have some limitations.  While adding extra
5593c8
+@command{grub2-mkconfig} does have some limitations.  While adding extra
5593c8
 custom menu entries to the end of the list can be done by editing
5593c8
-@file{/etc/grub.d/40_custom} or creating @file{/boot/grub/custom.cfg},
5593c8
+@file{/etc/grub.d/40_custom} or creating @file{/boot/grub2/custom.cfg},
5593c8
 changing the order of menu entries or changing their titles may require
5593c8
 making complex changes to shell scripts stored in @file{/etc/grub.d/}.  This
5593c8
 may be improved in the future.  In the meantime, those who feel that it
5593c8
 would be easier to write @file{grub.cfg} directly are encouraged to do so
5593c8
 (@pxref{Booting}, and @ref{Shell-like scripting}), and to disable any system
5593c8
-provided by their distribution to automatically run @command{grub-mkconfig}.
5593c8
+provided by their distribution to automatically run @command{grub2-mkconfig}.
5593c8
 
5593c8
 The file @file{/etc/default/grub} controls the operation of
5593c8
-@command{grub-mkconfig}.  It is sourced by a shell script, and so must be
5593c8
+@command{grub2-mkconfig}.  It is sourced by a shell script, and so must be
5593c8
 valid POSIX shell input; normally, it will just be a sequence of
5593c8
 @samp{KEY=value} lines, but if the value contains spaces or other special
5593c8
 characters then it must be quoted.  For example:
5593c8
@@ -1308,7 +1315,7 @@ works it's not recommended since titles often contain unstable device names
5593c8
 and may be translated
5593c8
 
5593c8
 If you set this to @samp{saved}, then the default menu entry will be that
5593c8
-saved by @samp{GRUB_SAVEDEFAULT} or @command{grub-set-default}.  This relies on
5593c8
+saved by @samp{GRUB_SAVEDEFAULT} or @command{grub2-set-default}.  This relies on
5593c8
 the environment block, which may not be available in all situations
5593c8
 (@pxref{Environment block}).
5593c8
 
5593c8
@@ -1319,7 +1326,7 @@ If this option is set to @samp{true}, then, when an entry is selected, save
5593c8
 it as a new default entry for use by future runs of GRUB.  This is only
5593c8
 useful if @samp{GRUB_DEFAULT=saved}; it is a separate option because
5593c8
 @samp{GRUB_DEFAULT=saved} is useful without this option, in conjunction with
5593c8
-@command{grub-set-default}.  Unset by default.
5593c8
+@command{grub2-set-default}.  Unset by default.
5593c8
 This option relies on the environment block, which may not be available in
5593c8
 all situations (@pxref{Environment block}).
5593c8
 
5593c8
@@ -1449,7 +1456,7 @@ intel-uc.img intel-ucode.img amd-uc.img amd-ucode.img early_ucode.cpio microcode
5593c8
 @end example
5593c8
 
5593c8
 @item GRUB_DISABLE_LINUX_UUID
5593c8
-Normally, @command{grub-mkconfig} will generate menu entries that use
5593c8
+Normally, @command{grub2-mkconfig} will generate menu entries that use
5593c8
 universally-unique identifiers (UUIDs) to identify the root filesystem to
5593c8
 the Linux kernel, using a @samp{root=UUID=...} kernel parameter.  This is
5593c8
 usually more reliable, but in some cases it may not be appropriate.  To
5593c8
@@ -1471,7 +1478,7 @@ If this option is set to @samp{true}, disable the generation of recovery
5593c8
 mode menu entries.
5593c8
 
5593c8
 @item GRUB_DISABLE_UUID
5593c8
-Normally, @command{grub-mkconfig} will generate menu entries that use
5593c8
+Normally, @command{grub2-mkconfig} will generate menu entries that use
5593c8
 universally-unique identifiers (UUIDs) to identify various filesystems to
5593c8
 search for files.  This is usually more reliable, but in some cases it may
5593c8
 not be appropriate.  To disable this use of UUIDs, set this option to
5593c8
@@ -1482,12 +1489,12 @@ not be appropriate.  To disable this use of UUIDs, set this option to
5593c8
 @item GRUB_VIDEO_BACKEND
5593c8
 If graphical video support is required, either because the @samp{gfxterm}
5593c8
 graphical terminal is in use or because @samp{GRUB_GFXPAYLOAD_LINUX} is set,
5593c8
-then @command{grub-mkconfig} will normally load all available GRUB video
5593c8
+then @command{grub2-mkconfig} will normally load all available GRUB video
5593c8
 drivers and use the one most appropriate for your hardware.  If you need to
5593c8
 override this for some reason, then you can set this option.
5593c8
 
5593c8
-After @command{grub-install} has been run, the available video drivers are
5593c8
-listed in @file{/boot/grub/video.lst}.
5593c8
+After @command{grub2-install} has been run, the available video drivers are
5593c8
+listed in @file{/boot/grub2/video.lst}.
5593c8
 
5593c8
 @item GRUB_GFXMODE
5593c8
 Set the resolution used on the @samp{gfxterm} graphical terminal.  Note that
5593c8
@@ -1519,7 +1526,7 @@ boot sequence.  If you have problems, set this option to @samp{text} and
5593c8
 GRUB will tell Linux to boot in normal text mode.
5593c8
 
5593c8
 @item GRUB_DISABLE_OS_PROBER
5593c8
-Normally, @command{grub-mkconfig} will try to use the external
5593c8
+Normally, @command{grub2-mkconfig} will try to use the external
5593c8
 @command{os-prober} program, if installed, to discover other operating
5593c8
 systems installed on the same system and generate appropriate menu entries
5593c8
 for them.  Set this option to @samp{true} to disable this.
5593c8
@@ -1529,7 +1536,7 @@ List of space-separated FS UUIDs of filesystems to be ignored from os-prober
5593c8
 output. For efi chainloaders it's <UUID>@@<EFI FILE>
5593c8
 
5593c8
 @item GRUB_DISABLE_SUBMENU
5593c8
-Normally, @command{grub-mkconfig} will generate top level menu entry for
5593c8
+Normally, @command{grub2-mkconfig} will generate top level menu entry for
5593c8
 the kernel with highest version number and put all other found kernels
5593c8
 or alternative menu entries for recovery mode in submenu. For entries returned
5593c8
 by @command{os-prober} first entry will be put on top level and all others
5593c8
@@ -1537,11 +1544,11 @@ in submenu. If this option is set to @samp{true}, flat menu with all entries
5593c8
 on top level will be generated instead. Changing this option will require
5593c8
 changing existing values of @samp{GRUB_DEFAULT}, @samp{fallback} (@pxref{fallback})
5593c8
 and @samp{default} (@pxref{default}) environment variables as well as saved
5593c8
-default entry using @command{grub-set-default} and value used with
5593c8
-@command{grub-reboot}.
5593c8
+default entry using @command{grub2-set-default} and value used with
5593c8
+@command{grub2-reboot}.
5593c8
 
5593c8
 @item GRUB_ENABLE_CRYPTODISK
5593c8
-If set to @samp{y}, @command{grub-mkconfig} and @command{grub-install} will
5593c8
+If set to @samp{y}, @command{grub2-mkconfig} and @command{grub2-install} will
5593c8
 check for encrypted disks and generate additional commands needed to access
5593c8
 them during boot.  Note that in this case unattended boot is not possible
5593c8
 because GRUB will wait for passphrase to unlock encrypted container.
5593c8
@@ -1600,7 +1607,7 @@ confusing @samp{GRUB_TIMEOUT_STYLE=countdown} or
5593c8
 
5593c8
 @end table
5593c8
 
5593c8
-For more detailed customisation of @command{grub-mkconfig}'s output, you may
5593c8
+For more detailed customisation of @command{grub2-mkconfig}'s output, you may
5593c8
 edit the scripts in @file{/etc/grub.d} directly.
5593c8
 @file{/etc/grub.d/40_custom} is particularly useful for adding entire custom
5593c8
 menu entries; simply type the menu entries you want to add at the end of
5593c8
@@ -1862,7 +1869,7 @@ images as well.
5593c8
 Mount this partition on/mnt/boot and disable GRUB in all OSes and manually
5593c8
 install self-compiled latest GRUB with:
5593c8
 
5593c8
-@code{grub-install --boot-directory=/mnt/boot /dev/sda}
5593c8
+@code{grub2-install --boot-directory=/mnt/boot /dev/sda}
5593c8
 
5593c8
 In all the OSes install GRUB tools but disable installing GRUB in bootsector,
5593c8
 so you'll have menu.lst and grub.cfg available for use. Also disable os-prober
5593c8
@@ -1872,20 +1879,20 @@ use by setting:
5593c8
 
5593c8
 in /etc/default/grub
5593c8
 
5593c8
-Then write a grub.cfg (/mnt/boot/grub/grub.cfg):
5593c8
+Then write a grub.cfg (/mnt/boot/grub2/grub.cfg):
5593c8
 
5593c8
 @example
5593c8
 
5593c8
 menuentry "OS using grub2" @{
5593c8
    insmod xfs
5593c8
    search --set=root --label OS1 --hint hd0,msdos8
5593c8
-   configfile /boot/grub/grub.cfg
5593c8
+   configfile /boot/grub2/grub.cfg
5593c8
 @}
5593c8
 
5593c8
 menuentry "OS using grub2-legacy" @{
5593c8
    insmod ext2
5593c8
    search --set=root --label OS2 --hint hd0,msdos6
5593c8
-   legacy_configfile /boot/grub/menu.lst
5593c8
+   legacy_configfile /boot/grub2/menu.lst
5593c8
 @}
5593c8
 
5593c8
 menuentry "Windows XP" @{
5593c8
@@ -1948,15 +1955,15 @@ GRUB supports embedding a configuration file directly into the core image,
5593c8
 so that it is loaded before entering normal mode.  This is useful, for
5593c8
 example, when it is not straightforward to find the real configuration file,
5593c8
 or when you need to debug problems with loading that file.
5593c8
-@command{grub-install} uses this feature when it is not using BIOS disk
5593c8
+@command{grub2-install} uses this feature when it is not using BIOS disk
5593c8
 functions or when installing to a different disk from the one containing
5593c8
 @file{/boot/grub}, in which case it needs to use the @command{search}
5593c8
 command (@pxref{search}) to find @file{/boot/grub}.
5593c8
 
5593c8
 To embed a configuration file, use the @option{-c} option to
5593c8
-@command{grub-mkimage}.  The file is copied into the core image, so it may
5593c8
+@command{grub2-mkimage}.  The file is copied into the core image, so it may
5593c8
 reside anywhere on the file system, and may be removed after running
5593c8
-@command{grub-mkimage}.
5593c8
+@command{grub2-mkimage}.
5593c8
 
5593c8
 After the embedded configuration file (if any) is executed, GRUB will load
5593c8
 the @samp{normal} module (@pxref{normal}), which will then read the real
5593c8
@@ -1991,13 +1998,13 @@ included in the core image:
5593c8
 @example
5593c8
 @group
5593c8
 search.fs_label grub root
5593c8
-if [ -e /boot/grub/example/test1.cfg ]; then
5593c8
+if [ -e /boot/grub2/example/test1.cfg ]; then
5593c8
     set prefix=($root)/boot/grub
5593c8
-    configfile /boot/grub/example/test1.cfg
5593c8
+    configfile /boot/grub2/example/test1.cfg
5593c8
 else
5593c8
-    if [ -e /boot/grub/example/test2.cfg ]; then
5593c8
+    if [ -e /boot/grub2/example/test2.cfg ]; then
5593c8
         set prefix=($root)/boot/grub
5593c8
-        configfile /boot/grub/example/test2.cfg
5593c8
+        configfile /boot/grub2/example/test2.cfg
5593c8
     else
5593c8
         echo "Could not find an example configuration file!"
5593c8
     fi
5593c8
@@ -2521,7 +2528,7 @@ grub-mknetdir --net-directory=/srv/tftp --subdir=/boot/grub -d /usr/lib/grub/i38
5593c8
 @end group
5593c8
 @end example
5593c8
 
5593c8
-Then follow instructions printed out by grub-mknetdir on configuring your DHCP
5593c8
+Then follow instructions printed out by grub2-mknetdir on configuring your DHCP
5593c8
 server.
5593c8
 
5593c8
 The grub.cfg file is placed in the same directory as the path output by
5593c8
@@ -2715,7 +2722,7 @@ team are:
5593c8
 @end table
5593c8
 
5593c8
 To take full advantage of this function, install GRUB into the MBR
5593c8
-(@pxref{Installing GRUB using grub-install}).
5593c8
+(@pxref{Installing GRUB using grub2-install}).
5593c8
 
5593c8
 If you have a laptop which has a similar feature and not in the above list
5593c8
 could you figure your address and contribute?
5593c8
@@ -2776,7 +2783,7 @@ bytes.
5593c8
 The sole function of @file{boot.img} is to read the first sector of the core
5593c8
 image from a local disk and jump to it.  Because of the size restriction,
5593c8
 @file{boot.img} cannot understand any file system structure, so
5593c8
-@command{grub-install} hardcodes the location of the first sector of the
5593c8
+@command{grub2-install} hardcodes the location of the first sector of the
5593c8
 core image into @file{boot.img} when installing GRUB.
5593c8
 
5593c8
 @item diskboot.img
5593c8
@@ -2806,7 +2813,7 @@ images.
5593c8
 
5593c8
 @item core.img
5593c8
 This is the core image of GRUB.  It is built dynamically from the kernel
5593c8
-image and an arbitrary list of modules by the @command{grub-mkimage}
5593c8
+image and an arbitrary list of modules by the @command{grub2-mkimage}
5593c8
 program.  Usually, it contains enough modules to access @file{/boot/grub},
5593c8
 and loads everything else (including menu handling, the ability to load
5593c8
 target operating systems, and so on) from the file system at run-time.  The
5593c8
@@ -2858,7 +2865,7 @@ GRUB 2 has no single Stage 2 image.  Instead, it loads modules from
5593c8
 In GRUB 2, images for booting from CD-ROM drives are now constructed using
5593c8
 @file{cdboot.img} and @file{core.img}, making sure that the core image
5593c8
 contains the @samp{iso9660} module.  It is usually best to use the
5593c8
-@command{grub-mkrescue} program for this.
5593c8
+@command{grub2-mkrescue} program for this.
5593c8
 
5593c8
 @item nbgrub
5593c8
 There is as yet no equivalent for @file{nbgrub} in GRUB 2; it was used by
5593c8
@@ -3014,8 +3021,8 @@ There are two ways to specify files, by @dfn{absolute file name} and by
5593c8
 
5593c8
 An absolute file name resembles a Unix absolute file name, using
5593c8
 @samp{/} for the directory separator (not @samp{\} as in DOS). One
5593c8
-example is @samp{(hd0,1)/boot/grub/grub.cfg}. This means the file
5593c8
-@file{/boot/grub/grub.cfg} in the first partition of the first hard
5593c8
+example is @samp{(hd0,1)/boot/grub2/grub.cfg}. This means the file
5593c8
+@file{/boot/grub2/grub.cfg} in the first partition of the first hard
5593c8
 disk. If you omit the device name in an absolute file name, GRUB uses
5593c8
 GRUB's @dfn{root device} implicitly. So if you set the root device to,
5593c8
 say, @samp{(hd1,1)} by the command @samp{set root=(hd1,1)} (@pxref{set}),
5593c8
@@ -3023,8 +3030,8 @@ then @code{/boot/kernel} is the same as @code{(hd1,1)/boot/kernel}.
5593c8
 
5593c8
 On ZFS filesystem the first path component must be
5593c8
 @var{volume}@samp{@@}[@var{snapshot}].
5593c8
-So @samp{/rootvol@@snap-129/boot/grub/grub.cfg} refers to file
5593c8
-@samp{/boot/grub/grub.cfg} in snapshot of volume @samp{rootvol} with name
5593c8
+So @samp{/rootvol@@snap-129/boot/grub2/grub.cfg} refers to file
5593c8
+@samp{/boot/grub2/grub.cfg} in snapshot of volume @samp{rootvol} with name
5593c8
 @samp{snap-129}.  Trailing @samp{@@} after volume name is mandatory even if
5593c8
 snapshot name is omitted.
5593c8
 
5593c8
@@ -3427,7 +3434,7 @@ The more recent release of Minix would then be identified as
5593c8
 @samp{other>minix>minix-3.4.0}.
5593c8
 
5593c8
 This variable is often set by @samp{GRUB_DEFAULT} (@pxref{Simple
5593c8
-configuration}), @command{grub-set-default}, or @command{grub-reboot}.
5593c8
+configuration}), @command{grub2-set-default}, or @command{grub2-reboot}.
5593c8
 
5593c8
 
5593c8
 @node fallback
5593c8
@@ -3517,7 +3524,7 @@ If this variable is set, it names the language code that the
5593c8
 example, French would be named as @samp{fr}, and Simplified Chinese as
5593c8
 @samp{zh_CN}.
5593c8
 
5593c8
-@command{grub-mkconfig} (@pxref{Simple configuration}) will try to set a
5593c8
+@command{grub2-mkconfig} (@pxref{Simple configuration}) will try to set a
5593c8
 reasonable default for this variable based on the system locale.
5593c8
 
5593c8
 
5593c8
@@ -3525,10 +3532,10 @@ reasonable default for this variable based on the system locale.
5593c8
 @subsection locale_dir
5593c8
 
5593c8
 If this variable is set, it names the directory where translation files may
5593c8
-be found (@pxref{gettext}), usually @file{/boot/grub/locale}.  Otherwise,
5593c8
+be found (@pxref{gettext}), usually @file{/boot/grub2/locale}.  Otherwise,
5593c8
 internationalization is disabled.
5593c8
 
5593c8
-@command{grub-mkconfig} (@pxref{Simple configuration}) will set a reasonable
5593c8
+@command{grub2-mkconfig} (@pxref{Simple configuration}) will set a reasonable
5593c8
 default for this variable if internationalization is needed and any
5593c8
 translation files are available.
5593c8
 
5593c8
@@ -3646,7 +3653,7 @@ input.  The default is not to pause output.
5593c8
 
5593c8
 The location of the @samp{/boot/grub} directory as an absolute file name
5593c8
 (@pxref{File name syntax}).  This is normally set by GRUB at startup based
5593c8
-on information provided by @command{grub-install}.  GRUB modules are
5593c8
+on information provided by @command{grub2-install}.  GRUB modules are
5593c8
 dynamically loaded from this directory, so it must be set correctly in order
5593c8
 for many parts of GRUB to work.
5593c8
 
5593c8
@@ -3737,17 +3744,17 @@ GRUB provides an ``environment block'' which can be used to save a small
5593c8
 amount of state.
5593c8
 
5593c8
 The environment block is a preallocated 1024-byte file, which normally lives
5593c8
-in @file{/boot/grub/grubenv} (although you should not assume this).  At boot
5593c8
+in @file{/boot/grub2/grubenv} (although you should not assume this).  At boot
5593c8
 time, the @command{load_env} command (@pxref{load_env}) loads environment
5593c8
 variables from it, and the @command{save_env} (@pxref{save_env}) command
5593c8
 saves environment variables to it.  From a running system, the
5593c8
-@command{grub-editenv} utility can be used to edit the environment block.
5593c8
+@command{grub2-editenv} utility can be used to edit the environment block.
5593c8
 
5593c8
 For safety reasons, this storage is only available when installed on a plain
5593c8
 disk (no LVM or RAID), using a non-checksumming filesystem (no ZFS), and
5593c8
 using BIOS or EFI functions (no ATA, USB or IEEE1275).
5593c8
 
5593c8
-@command{grub-mkconfig} uses this facility to implement
5593c8
+@command{grub2-mkconfig} uses this facility to implement
5593c8
 @samp{GRUB_SAVEDEFAULT} (@pxref{Simple configuration}).
5593c8
 
5593c8
 
5593c8
@@ -4476,7 +4483,7 @@ Translate @var{string} into the current language.
5593c8
 
5593c8
 The current language code is stored in the @samp{lang} variable in GRUB's
5593c8
 environment (@pxref{lang}).  Translation files in MO format are read from
5593c8
-@samp{locale_dir} (@pxref{locale_dir}), usually @file{/boot/grub/locale}.
5593c8
+@samp{locale_dir} (@pxref{locale_dir}), usually @file{/boot/grub2/locale}.
5593c8
 @end deffn
5593c8
 
5593c8
 
5593c8
@@ -4871,7 +4878,7 @@ Define a user named @var{user} with password @var{clear-password}.
5593c8
 
5593c8
 @deffn Command password_pbkdf2 user hashed-password
5593c8
 Define a user named @var{user} with password hash @var{hashed-password}.
5593c8
-Use @command{grub-mkpasswd-pbkdf2} (@pxref{Invoking grub-mkpasswd-pbkdf2})
5593c8
+Use @command{grub2-mkpasswd-pbkdf2} (@pxref{Invoking grub2-mkpasswd-pbkdf2})
5593c8
 to generate password hashes.  @xref{Security}.
5593c8
 @end deffn
5593c8
 
5593c8
@@ -5814,8 +5821,8 @@ The @samp{password} (@pxref{password}) and @samp{password_pbkdf2}
5593c8
 which has an associated password.  @samp{password} sets the password in
5593c8
 plain text, requiring @file{grub.cfg} to be secure; @samp{password_pbkdf2}
5593c8
 sets the password hashed using the Password-Based Key Derivation Function
5593c8
-(RFC 2898), requiring the use of @command{grub-mkpasswd-pbkdf2}
5593c8
-(@pxref{Invoking grub-mkpasswd-pbkdf2}) to generate password hashes.
5593c8
+(RFC 2898), requiring the use of @command{grub2-mkpasswd-pbkdf2}
5593c8
+(@pxref{Invoking grub2-mkpasswd-pbkdf2}) to generate password hashes.
5593c8
 
5593c8
 In order to enable authentication support, the @samp{superusers} environment
5593c8
 variable must be set to a list of usernames, separated by any of spaces,
5593c8
@@ -5860,7 +5867,7 @@ menuentry "May be run by user1 or a superuser" --users user1 @{
5593c8
 @end group
5593c8
 @end example
5593c8
 
5593c8
-The @command{grub-mkconfig} program does not yet have built-in support for
5593c8
+The @command{grub2-mkconfig} program does not yet have built-in support for
5593c8
 generating configuration files with authentication.  You can use
5593c8
 @file{/etc/grub.d/40_custom} to add simple superuser authentication, by
5593c8
 adding @kbd{set superusers=} and @kbd{password} or @kbd{password_pbkdf2}
5593c8
@@ -5887,7 +5894,17 @@ may halt or otherwise impact the boot process.
5593c8
 
5593c8
 An initial trusted public key can be embedded within the GRUB @file{core.img}
5593c8
 using the @code{--pubkey} option to @command{grub-install}
5593c8
-(@pxref{Invoking grub-install}).
5593c8
+(@pxref{Invoking grub2-install}).
5593c8
+
5593c8
+@comment Unfortunately --pubkey is not yet supported by grub2-install,
5593c8
+@comment but we should not bring up internal detail grub2-mkimage here
5593c8
+@comment in the user guide (as opposed to developer's manual).
5593c8
+
5593c8
+@comment An initial trusted public key can be embedded within the GRUB
5593c8
+@comment @file{core.img} using the @code{--pubkey} option to
5593c8
+@comment @command{grub2-mkimage} (@pxref{Invoking grub2-install}).  Presently it
5593c8
+@comment is necessary to write a custom wrapper around @command{grub2-mkimage}
5593c8
+@comment using the @code{--grub-mkimage} flag to @command{grub2-install}.
5593c8
 
5593c8
 GRUB uses GPG-style detached signatures (meaning that a file
5593c8
 @file{foo.sig} will be produced when file @file{foo} is signed), and
5593c8
@@ -5907,8 +5924,8 @@ gpg --detach-sign /path/to/file
5593c8
 For successful validation of all of GRUB's subcomponents and the
5593c8
 loaded OS kernel, they must all be signed.  One way to accomplish this
5593c8
 is the following (after having already produced the desired
5593c8
-@file{grub.cfg} file, e.g., by running @command{grub-mkconfig}
5593c8
-(@pxref{Invoking grub-mkconfig}):
5593c8
+@file{grub.cfg} file, e.g., by running @command{grub2-mkconfig}
5593c8
+(@pxref{Invoking grub2-mkconfig}):
5593c8
 
5593c8
 @example
5593c8
 @group
5593c8
@@ -5930,7 +5947,7 @@ See also: @ref{check_signatures}, @ref{verify_detached}, @ref{trust},
5593c8
 Note that internally signature enforcement is controlled by setting
5593c8
 the environment variable @code{check_signatures} equal to
5593c8
 @code{enforce}.  Passing one or more @code{--pubkey} options to
5593c8
-@command{grub-mkimage} implicitly defines @code{check_signatures}
5593c8
+@command{grub2-mkimage} implicitly defines @code{check_signatures}
5593c8
 equal to @code{enforce} in @file{core.img} prior to processing any
5593c8
 configuration files.
5593c8
 
5593c8
@@ -6388,10 +6405,10 @@ Required files are:
5593c8
 
5593c8
 GRUB's normal start-up procedure involves setting the @samp{prefix}
5593c8
 environment variable to a value set in the core image by
5593c8
-@command{grub-install}, setting the @samp{root} variable to match, loading
5593c8
+@command{grub2-install}, setting the @samp{root} variable to match, loading
5593c8
 the @samp{normal} module from the prefix, and running the @samp{normal}
5593c8
 command (@pxref{normal}).  This command is responsible for reading
5593c8
-@file{/boot/grub/grub.cfg}, running the menu, and doing all the useful
5593c8
+@file{/boot/grub2/grub.cfg}, running the menu, and doing all the useful
5593c8
 things GRUB is supposed to do.
5593c8
 
5593c8
 If, instead, you only get a rescue shell, this usually means that GRUB
5593c8
@@ -6417,8 +6434,8 @@ normal
5593c8
 
5593c8
 However, any problem that leaves you in the rescue shell probably means that
5593c8
 GRUB was not correctly installed.  It may be more useful to try to reinstall
5593c8
-it properly using @kbd{grub-install @var{device}} (@pxref{Invoking
5593c8
-grub-install}).  When doing this, there are a few things to remember:
5593c8
+it properly using @kbd{grub2-install @var{device}} (@pxref{Invoking
5593c8
+grub2-install}).  When doing this, there are a few things to remember:
5593c8
 
5593c8
 @itemize @bullet{}
5593c8
 @item
5593c8
@@ -6430,7 +6447,7 @@ is usually better to use UUIDs or file system labels and avoid depending on
5593c8
 drive ordering entirely.
5593c8
 
5593c8
 @item
5593c8
-At least on BIOS systems, if you tell @command{grub-install} to install GRUB
5593c8
+At least on BIOS systems, if you tell @command{grub2-install} to install GRUB
5593c8
 to a partition but GRUB has already been installed in the master boot
5593c8
 record, then the GRUB installation in the partition will be ignored.
5593c8
 
5593c8
@@ -6461,21 +6478,21 @@ entry which claims partition start at block 0. This change will not hamper
5593c8
 bootability on other machines.
5593c8
 
5593c8
 
5593c8
-@node Invoking grub-install
5593c8
-@chapter Invoking grub-install
5593c8
+@node Invoking grub2-install
5593c8
+@chapter Invoking grub2-install
5593c8
 
5593c8
-The program @command{grub-install} generates a GRUB core image using
5593c8
-@command{grub-mkimage} and installs it on your system.  You must specify the
5593c8
+The program @command{grub2-install} generates a GRUB core image using
5593c8
+@command{grub2-mkimage} and installs it on your system.  You must specify the
5593c8
 device name on which you want to install GRUB, like this:
5593c8
 
5593c8
 @example
5593c8
-grub-install @var{install_device}
5593c8
+grub2-install @var{install_device}
5593c8
 @end example
5593c8
 
5593c8
 The device name @var{install_device} is an OS device name or a GRUB
5593c8
 device name.
5593c8
 
5593c8
-@command{grub-install} accepts the following options:
5593c8
+@command{grub2-install} accepts the following options:
5593c8
 
5593c8
 @table @option
5593c8
 @item --help
5593c8
@@ -6491,13 +6508,13 @@ separate partition or a removable disk.
5593c8
 If this option is not specified then it defaults to @file{/boot}, so
5593c8
 
5593c8
 @example
5593c8
-@kbd{grub-install /dev/sda}
5593c8
+@kbd{grub2-install /dev/sda}
5593c8
 @end example
5593c8
 
5593c8
 is equivalent to
5593c8
 
5593c8
 @example
5593c8
-@kbd{grub-install --boot-directory=/boot/ /dev/sda}
5593c8
+@kbd{grub2-install --boot-directory=/boot/ /dev/sda}
5593c8
 @end example
5593c8
 
5593c8
 Here is an example in which you have a separate @dfn{boot} partition which is 
5593c8
@@ -6505,16 +6522,16 @@ mounted on
5593c8
 @file{/mnt/boot}:
5593c8
 
5593c8
 @example
5593c8
-@kbd{grub-install --boot-directory=/mnt/boot /dev/sdb}
5593c8
+@kbd{grub2-install --boot-directory=/mnt/boot /dev/sdb}
5593c8
 @end example
5593c8
 
5593c8
 @item --recheck
5593c8
-Recheck the device map, even if @file{/boot/grub/device.map} already
5593c8
+Recheck the device map, even if @file{/boot/grub2/device.map} already
5593c8
 exists. You should use this option whenever you add/remove a disk
5593c8
 into/from your computer.
5593c8
 
5593c8
 @item --no-rs-codes
5593c8
-By default on x86 BIOS systems, @command{grub-install} will use some
5593c8
+By default on x86 BIOS systems, @command{grub2-install} will use some
5593c8
 extra space in the bootloader embedding area for Reed-Solomon
5593c8
 error-correcting codes. This enables GRUB to still boot successfully
5593c8
 if some blocks are corrupted.  The exact amount of protection offered
5593c8
@@ -6527,17 +6544,17 @@ installation}) where GRUB does not reside in any unpartitioned space
5593c8
 outside of the MBR.  Disable the Reed-Solomon codes with this option.
5593c8
 @end table
5593c8
 
5593c8
-@node Invoking grub-mkconfig
5593c8
-@chapter Invoking grub-mkconfig
5593c8
+@node Invoking grub2-mkconfig
5593c8
+@chapter Invoking grub2-mkconfig
5593c8
 
5593c8
-The program @command{grub-mkconfig} generates a configuration file for GRUB
5593c8
+The program @command{grub2-mkconfig} generates a configuration file for GRUB
5593c8
 (@pxref{Simple configuration}).
5593c8
 
5593c8
 @example
5593c8
-grub-mkconfig -o /boot/grub/grub.cfg
5593c8
+grub-mkconfig -o /boot/grub2/grub.cfg
5593c8
 @end example
5593c8
 
5593c8
-@command{grub-mkconfig} accepts the following options:
5593c8
+@command{grub2-mkconfig} accepts the following options:
5593c8
 
5593c8
 @table @option
5593c8
 @item --help
5593c8
@@ -6553,17 +6570,17 @@ it to standard output.
5593c8
 @end table
5593c8
 
5593c8
 
5593c8
-@node Invoking grub-mkpasswd-pbkdf2
5593c8
-@chapter Invoking grub-mkpasswd-pbkdf2
5593c8
+@node Invoking grub2-mkpasswd-pbkdf2
5593c8
+@chapter Invoking grub2-mkpasswd-pbkdf2
5593c8
 
5593c8
-The program @command{grub-mkpasswd-pbkdf2} generates password hashes for
5593c8
+The program @command{grub2-mkpasswd-pbkdf2} generates password hashes for
5593c8
 GRUB (@pxref{Security}).
5593c8
 
5593c8
 @example
5593c8
 grub-mkpasswd-pbkdf2
5593c8
 @end example
5593c8
 
5593c8
-@command{grub-mkpasswd-pbkdf2} accepts the following options:
5593c8
+@command{grub2-mkpasswd-pbkdf2} accepts the following options:
5593c8
 
5593c8
 @table @option
5593c8
 @item -c @var{number}
5593c8
@@ -6581,23 +6598,23 @@ Length of the salt.  Defaults to 64.
5593c8
 @end table
5593c8
 
5593c8
 
5593c8
-@node Invoking grub-mkrelpath
5593c8
-@chapter Invoking grub-mkrelpath
5593c8
+@node Invoking grub2-mkrelpath
5593c8
+@chapter Invoking grub2-mkrelpath
5593c8
 
5593c8
-The program @command{grub-mkrelpath} makes a file system path relative to
5593c8
+The program @command{grub2-mkrelpath} makes a file system path relative to
5593c8
 the root of its containing file system.  For instance, if @file{/usr} is a
5593c8
 mount point, then:
5593c8
 
5593c8
 @example
5593c8
-$ @kbd{grub-mkrelpath /usr/share/grub/unicode.pf2}
5593c8
+$ @kbd{grub2-mkrelpath /usr/share/grub/unicode.pf2}
5593c8
 @samp{/share/grub/unicode.pf2}
5593c8
 @end example
5593c8
 
5593c8
 This is mainly used internally by other GRUB utilities such as
5593c8
-@command{grub-mkconfig} (@pxref{Invoking grub-mkconfig}), but may
5593c8
+@command{grub2-mkconfig} (@pxref{Invoking grub2-mkconfig}), but may
5593c8
 occasionally also be useful for debugging.
5593c8
 
5593c8
-@command{grub-mkrelpath} accepts the following options:
5593c8
+@command{grub2-mkrelpath} accepts the following options:
5593c8
 
5593c8
 @table @option
5593c8
 @item --help
5593c8
@@ -6608,17 +6625,17 @@ Print the version number of GRUB and exit.
5593c8
 @end table
5593c8
 
5593c8
 
5593c8
-@node Invoking grub-mkrescue
5593c8
-@chapter Invoking grub-mkrescue
5593c8
+@node Invoking grub2-mkrescue
5593c8
+@chapter Invoking grub2-mkrescue
5593c8
 
5593c8
-The program @command{grub-mkrescue} generates a bootable GRUB rescue image
5593c8
+The program @command{grub2-mkrescue} generates a bootable GRUB rescue image
5593c8
 (@pxref{Making a GRUB bootable CD-ROM}).
5593c8
 
5593c8
 @example
5593c8
 grub-mkrescue -o grub.iso
5593c8
 @end example
5593c8
 
5593c8
-All arguments not explicitly listed as @command{grub-mkrescue} options are
5593c8
+All arguments not explicitly listed as @command{grub2-mkrescue} options are
5593c8
 passed on directly to @command{xorriso} in @command{mkisofs} emulation mode.
5593c8
 Options passed to @command{xorriso} will normally be interpreted as
5593c8
 @command{mkisofs} options; if the option @samp{--} is used, then anything
5593c8
@@ -6633,7 +6650,7 @@ mkdir -p disk/boot/grub
5593c8
 grub-mkrescue -o grub.iso disk
5593c8
 @end example
5593c8
 
5593c8
-@command{grub-mkrescue} accepts the following options:
5593c8
+@command{grub2-mkrescue} accepts the following options:
5593c8
 
5593c8
 @table @option
5593c8
 @item --help
5593c8
@@ -6661,15 +6678,15 @@ Use @var{file} as the @command{xorriso} program, rather than the built-in
5593c8
 default.
5593c8
 
5593c8
 @item --grub-mkimage=@var{file}
5593c8
-Use @var{file} as the @command{grub-mkimage} program, rather than the
5593c8
+Use @var{file} as the @command{grub2-mkimage} program, rather than the
5593c8
 built-in default.
5593c8
 @end table
5593c8
 
5593c8
 
5593c8
-@node Invoking grub-mount
5593c8
-@chapter Invoking grub-mount
5593c8
+@node Invoking grub2-mount
5593c8
+@chapter Invoking grub2-mount
5593c8
 
5593c8
-The program @command{grub-mount} performs a read-only mount of any file
5593c8
+The program @command{grub2-mount} performs a read-only mount of any file
5593c8
 system or file system image that GRUB understands, using GRUB's file system
5593c8
 drivers via FUSE.  (It is only available if FUSE development files were
5593c8
 present when GRUB was built.)  This has a number of uses:
5593c8
@@ -6701,13 +6718,13 @@ even if nobody has yet written a FUSE module specifically for that file
5593c8
 system type.
5593c8
 @end itemize
5593c8
 
5593c8
-Using @command{grub-mount} is normally as simple as:
5593c8
+Using @command{grub2-mount} is normally as simple as:
5593c8
 
5593c8
 @example
5593c8
 grub-mount /dev/sda1 /mnt
5593c8
 @end example
5593c8
 
5593c8
-@command{grub-mount} must be given one or more images and a mount point as
5593c8
+@command{grub2-mount} must be given one or more images and a mount point as
5593c8
 non-option arguments (if it is given more than one image, it will treat them
5593c8
 as a RAID set), and also accepts the following options:
5593c8
 
5593c8
@@ -6729,13 +6746,13 @@ Show debugging output for conditions matching @var{string}.
5593c8
 @item -K prompt|@var{file}
5593c8
 @itemx --zfs-key=prompt|@var{file}
5593c8
 Load a ZFS encryption key.  If you use @samp{prompt} as the argument,
5593c8
-@command{grub-mount} will read a passphrase from the terminal; otherwise, it
5593c8
+@command{grub2-mount} will read a passphrase from the terminal; otherwise, it
5593c8
 will read key material from the specified file.
5593c8
 
5593c8
 @item -r @var{device}
5593c8
 @itemx --root=@var{device}
5593c8
 Set the GRUB root device to @var{device}.  You do not normally need to set
5593c8
-this; @command{grub-mount} will automatically set the root device to the
5593c8
+this; @command{grub2-mount} will automatically set the root device to the
5593c8
 root of the supplied file system.
5593c8
 
5593c8
 If @var{device} is just a number, then it will be treated as a partition
5593c8
@@ -6753,10 +6770,10 @@ Print verbose messages.
5593c8
 @end table
5593c8
 
5593c8
 
5593c8
-@node Invoking grub-probe
5593c8
-@chapter Invoking grub-probe
5593c8
+@node Invoking grub2-probe
5593c8
+@chapter Invoking grub2-probe
5593c8
 
5593c8
-The program @command{grub-probe} probes device information for a given path
5593c8
+The program @command{grub2-probe} probes device information for a given path
5593c8
 or device.
5593c8
 
5593c8
 @example
5593c8
@@ -6764,7 +6781,7 @@ grub-probe --target=fs /boot/grub
5593c8
 grub-probe --target=drive --device /dev/sda1
5593c8
 @end example
5593c8
 
5593c8
-@command{grub-probe} must be given a path or device as a non-option
5593c8
+@command{grub2-probe} must be given a path or device as a non-option
5593c8
 argument, and also accepts the following options:
5593c8
 
5593c8
 @table @option
5593c8
@@ -6777,16 +6794,16 @@ Print the version number of GRUB and exit.
5593c8
 @item -d
5593c8
 @itemx --device
5593c8
 If this option is given, then the non-option argument is a system device
5593c8
-name (such as @samp{/dev/sda1}), and @command{grub-probe} will print
5593c8
+name (such as @samp{/dev/sda1}), and @command{grub2-probe} will print
5593c8
 information about that device.  If it is not given, then the non-option
5593c8
 argument is a filesystem path (such as @samp{/boot/grub}), and
5593c8
-@command{grub-probe} will print information about the device containing that
5593c8
+@command{grub2-probe} will print information about the device containing that
5593c8
 part of the filesystem.
5593c8
 
5593c8
 @item -m @var{file}
5593c8
 @itemx --device-map=@var{file}
5593c8
 Use @var{file} as the device map (@pxref{Device map}) rather than the
5593c8
-default, usually @samp{/boot/grub/device.map}.
5593c8
+default, usually @samp{/boot/grub2/device.map}.
5593c8
 
5593c8
 @item -t @var{target}
5593c8
 @itemx --target=@var{target}
5593c8
@@ -6839,19 +6856,19 @@ Print verbose messages.
5593c8
 @end table
5593c8
 
5593c8
 
5593c8
-@node Invoking grub-script-check
5593c8
-@chapter Invoking grub-script-check
5593c8
+@node Invoking grub2-script-check
5593c8
+@chapter Invoking grub2-script-check
5593c8
 
5593c8
-The program @command{grub-script-check} takes a GRUB script file
5593c8
+The program @command{grub2-script-check} takes a GRUB script file
5593c8
 (@pxref{Shell-like scripting}) and checks it for syntax errors, similar to
5593c8
 commands such as @command{sh -n}.  It may take a @var{path} as a non-option
5593c8
 argument; if none is supplied, it will read from standard input.
5593c8
 
5593c8
 @example
5593c8
-grub-script-check /boot/grub/grub.cfg
5593c8
+grub-script-check /boot/grub2/grub.cfg
5593c8
 @end example
5593c8
 
5593c8
-@command{grub-script-check} accepts the following options:
5593c8
+@command{grub2-script-check} accepts the following options:
5593c8
 
5593c8
 @table @option
5593c8
 @item --help