aboutsummaryrefslogtreecommitdiffstats
path: root/chapter10
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-01-06 12:57:22 +0800
committerXi Ruoyao <xry111@xry111.site>2023-01-06 12:57:22 +0800
commit0cbb853d3c28d611c66d35123b97a07a1878ef1b (patch)
treecb7ac7490f98abb38e7e3cb3cc568afd0eb03010 /chapter10
parent688a8f513358a64c4ff040bbb1fedbb45eb394fc (diff)
parentaf944eba93bd7f6f29732bf0851c57dc0c3e5845 (diff)
Merge remote-tracking branch 'origin/trunk' into xry111/arm64
Diffstat (limited to 'chapter10')
-rw-r--r--chapter10/grub.xml35
1 files changed, 19 insertions, 16 deletions
diff --git a/chapter10/grub.xml b/chapter10/grub.xml
index bf8738dd9..68be4708f 100644
--- a/chapter10/grub.xml
+++ b/chapter10/grub.xml
@@ -23,7 +23,7 @@
</para>
<para>
If you've installed GRUB for UEFI with optional dependencies following
- BLFS, you should skip this page, and config GRUB with UEFI support
+ BLFS, you should skip this page, and configure GRUB with UEFI support
using the instructions provided in
<ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>,
but replace <parameter>--target=x86_64-efi</parameter> with
@@ -70,8 +70,8 @@
<para>GRUB uses its own naming structure for drives and partitions in
the form of <emphasis>(hdn,m)</emphasis>, where <emphasis>n</emphasis>
is the hard drive number and <emphasis>m</emphasis> is the partition
- number. The hard drive number starts from zero, but the partition number
- starts from one for normal partitions and five for extended partitions.
+ number. The hard drive numbers start from zero, but the partition numbers
+ start from one for normal partitions (from five for extended partitions).
Note that this is different from earlier versions where
both numbers started from zero. For example, partition <filename
class="partition">sda1</filename> is <emphasis>(hd0,1)</emphasis> to
@@ -120,12 +120,13 @@ mount /boot/efi</userinput></screen>
files and access can be made from any booted system. If you choose to do
this, you will need to mount the separate partition, move all files in the
current <filename class="directory">/boot</filename> directory (e.g. the
- linux kernel you just built in the previous section) to the new partition.
+ Linux kernel you just built in the previous section) to the new partition.
You will then need to unmount the partition and remount it as <filename
class="directory">/boot</filename>. If you do this, be sure to update
<filename>/etc/fstab</filename>.</para>
- <para>Using the current lfs partition will also work, but configuration
+ <para>Leaving <filename class="directory">/boot</filename> on
+ the current LFS partition will also work, but configuration
for multiple systems is more difficult.</para>
<para>Using the above information, determine the appropriate
@@ -231,26 +232,28 @@ EOF</userinput></screen>
The change may cause boot failure because
<filename>grub.cfg</filename> refers to some <quote>old</quote>
designators. If you wish to avoid such a problem, you may use
- the UUID of partition and filesystem instead of GRUB designator to
- specify a partition.
+ the UUID of a partition and the UUID of a filesystem instead of a GRUB designator to
+ specify a device.
Run <command>lsblk -o UUID,PARTUUID,PATH,MOUNTPOINT</command> to show
- the UUID of your filesystems (in <literal>UUID</literal> column) and
- partitions (in <literal>PARTUUID</literal> column). Then replace
+ the UUIDs of your filesystems (in the <literal>UUID</literal> column) and
+ partitions (in the <literal>PARTUUID</literal> column). Then replace
<literal>set root=(hdx,y)</literal> with
- <literal>search --set=root --fs-uuid <replaceable>&lt;UUID of the filesystem where the kernel is installed&gt;</replaceable></literal>, and replace
+ <literal>search --set=root --fs-uuid <replaceable>&lt;UUID of the filesystem
+ where the kernel is installed&gt;</replaceable></literal>, and replace
<literal>root=/dev/sda2</literal> with
- <literal>root=PARTUUID=<replaceable>&lt;UUID of the partition where LFS is built&gt;</replaceable></literal>.</para>
- <para>Note that the UUID of a partition and the UUID of the filesystem
- in this partition is completely different. Some online resources may
+ <literal>root=PARTUUID=<replaceable>&lt;UUID of the partition where LFS
+ is built&gt;</replaceable></literal>.</para>
+ <para>Note that the UUID of a partition is completely different from the
+ UUID of the filesystem in this partition. Some online resources may
instruct you to use
<literal>root=UUID=<replaceable>&lt;filesystem UUID&gt;</replaceable></literal>
instead of
<literal>root=PARTUUID=<replaceable>&lt;partition UUID&gt;</replaceable></literal>,
- but doing so will require an initramfs which is beyond the scope of
+ but doing so will require an initramfs, which is beyond the scope of
LFS.</para>
<para>The name of the device node for a partition in
- <filename class='directory'>/dev</filename> may also change (more
- unlikely than GRUB designator change though). You can also replace
+ <filename class='directory'>/dev</filename> may also change (this is less
+ likely than a GRUB designator change). You can also replace
paths to device nodes like <literal>/dev/sda1</literal> with
<literal>PARTUUID=<replaceable>&lt;partition UUID&gt;</replaceable></literal>,
in <filename>/etc/fstab</filename>, to avoid a potential boot failure