Changeset 4163128 for chapter10/grub.xml
- Timestamp:
- 01/01/2023 11:30:12 PM (21 months ago)
- Branches:
- multilib, xry111/multilib
- Children:
- aad2894
- Parents:
- 1baad3a7 (diff), 8190ca0 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter10/grub.xml
r1baad3a7 r4163128 20 20 <para> 21 21 If your system has UEFI support and you wish to boot LFS with UEFI, 22 you should skip this page, and config GRUB with UEFI support22 you should skip this page, and configure GRUB with UEFI support 23 23 using the instructions provided in 24 24 <ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>. … … 55 55 the form of <emphasis>(hdn,m)</emphasis>, where <emphasis>n</emphasis> 56 56 is the hard drive number and <emphasis>m</emphasis> is the partition 57 number. The hard drive number starts from zero, but the partition number58 start s from one for normal partitions and five for extended partitions.57 number. The hard drive numbers start from zero, but the partition numbers 58 start from one for normal partitions (from five for extended partitions). 59 59 Note that this is different from earlier versions where 60 60 both numbers started from zero. For example, partition <filename … … 84 84 this, you will need to mount the separate partition, move all files in the 85 85 current <filename class="directory">/boot</filename> directory (e.g. the 86 linux kernel you just built in the previous section) to the new partition.86 Linux kernel you just built in the previous section) to the new partition. 87 87 You will then need to unmount the partition and remount it as <filename 88 88 class="directory">/boot</filename>. If you do this, be sure to update 89 89 <filename>/etc/fstab</filename>.</para> 90 90 91 <para>Using the current lfs partition will also work, but configuration 91 <para>Leaving <filename class="directory">>/boot</filename> on 92 the current LFS partition will also work, but configuration 92 93 for multiple systems is more difficult.</para> 93 94 … … 162 163 <filename>grub.cfg</filename> refers to some <quote>old</quote> 163 164 designators. If you wish to avoid such a problem, you may use 164 the UUID of partition and filesystem instead ofGRUB designator to165 specify a partition.165 the UUID of a partition and the UUID of a filesystem instead of a GRUB designator to 166 specify a device. 166 167 Run <command>lsblk -o UUID,PARTUUID,PATH,MOUNTPOINT</command> to show 167 the UUID of your filesystems (in<literal>UUID</literal> column) and168 partitions (in <literal>PARTUUID</literal> column). Then replace168 the UUIDs of your filesystems (in the <literal>UUID</literal> column) and 169 partitions (in the <literal>PARTUUID</literal> column). Then replace 169 170 <literal>set root=(hdx,y)</literal> with 170 <literal>search --set=root --fs-uuid <replaceable><UUID of the filesystem where the kernel is installed></replaceable></literal>, and replace 171 <literal>search --set=root --fs-uuid <replaceable><UUID of the filesystem 172 where the kernel is installed></replaceable></literal>, and replace 171 173 <literal>root=/dev/sda2</literal> with 172 <literal>root=PARTUUID=<replaceable><UUID of the partition where LFS is built></replaceable></literal>.</para> 173 <para>Note that the UUID of a partition and the UUID of the filesystem 174 in this partition is completely different. Some online resources may 174 <literal>root=PARTUUID=<replaceable><UUID of the partition where LFS 175 is built></replaceable></literal>.</para> 176 <para>Note that the UUID of a partition is completely different from the 177 UUID of the filesystem in this partition. Some online resources may 175 178 instruct you to use 176 179 <literal>root=UUID=<replaceable><filesystem UUID></replaceable></literal> 177 180 instead of 178 181 <literal>root=PARTUUID=<replaceable><partition UUID></replaceable></literal>, 179 but doing so will require an initramfs which is beyond the scope of182 but doing so will require an initramfs, which is beyond the scope of 180 183 LFS.</para> 181 184 <para>The name of the device node for a partition in 182 <filename class='directory'>/dev</filename> may also change ( more183 unlikely than GRUB designator change though). You can also replace185 <filename class='directory'>/dev</filename> may also change (this is less 186 likely than a GRUB designator change). You can also replace 184 187 paths to device nodes like <literal>/dev/sda1</literal> with 185 188 <literal>PARTUUID=<replaceable><partition UUID></replaceable></literal>,
Note:
See TracChangeset
for help on using the changeset viewer.