Changeset 0cbb853 for chapter10/grub.xml
- Timestamp:
- 01/06/2023 04:57:22 AM (16 months ago)
- Branches:
- xry111/arm64, xry111/arm64-12.0
- Children:
- 83ce6e3
- Parents:
- 688a8f5 (diff), af944eb (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
r688a8f5 r0cbb853 24 24 <para> 25 25 If you've installed GRUB for UEFI with optional dependencies following 26 BLFS, you should skip this page, and config GRUB with UEFI support26 BLFS, you should skip this page, and configure GRUB with UEFI support 27 27 using the instructions provided in 28 28 <ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>, … … 71 71 the form of <emphasis>(hdn,m)</emphasis>, where <emphasis>n</emphasis> 72 72 is the hard drive number and <emphasis>m</emphasis> is the partition 73 number. The hard drive number starts from zero, but the partition number74 start s from one for normal partitions and five for extended partitions.73 number. The hard drive numbers start from zero, but the partition numbers 74 start from one for normal partitions (from five for extended partitions). 75 75 Note that this is different from earlier versions where 76 76 both numbers started from zero. For example, partition <filename … … 121 121 this, you will need to mount the separate partition, move all files in the 122 122 current <filename class="directory">/boot</filename> directory (e.g. the 123 linux kernel you just built in the previous section) to the new partition.123 Linux kernel you just built in the previous section) to the new partition. 124 124 You will then need to unmount the partition and remount it as <filename 125 125 class="directory">/boot</filename>. If you do this, be sure to update 126 126 <filename>/etc/fstab</filename>.</para> 127 127 128 <para>Using the current lfs partition will also work, but configuration 128 <para>Leaving <filename class="directory">/boot</filename> on 129 the current LFS partition will also work, but configuration 129 130 for multiple systems is more difficult.</para> 130 131 … … 232 233 <filename>grub.cfg</filename> refers to some <quote>old</quote> 233 234 designators. If you wish to avoid such a problem, you may use 234 the UUID of partition and filesystem instead ofGRUB designator to235 specify a partition.235 the UUID of a partition and the UUID of a filesystem instead of a GRUB designator to 236 specify a device. 236 237 Run <command>lsblk -o UUID,PARTUUID,PATH,MOUNTPOINT</command> to show 237 the UUID of your filesystems (in<literal>UUID</literal> column) and238 partitions (in <literal>PARTUUID</literal> column). Then replace238 the UUIDs of your filesystems (in the <literal>UUID</literal> column) and 239 partitions (in the <literal>PARTUUID</literal> column). Then replace 239 240 <literal>set root=(hdx,y)</literal> with 240 <literal>search --set=root --fs-uuid <replaceable><UUID of the filesystem where the kernel is installed></replaceable></literal>, and replace 241 <literal>search --set=root --fs-uuid <replaceable><UUID of the filesystem 242 where the kernel is installed></replaceable></literal>, and replace 241 243 <literal>root=/dev/sda2</literal> with 242 <literal>root=PARTUUID=<replaceable><UUID of the partition where LFS is built></replaceable></literal>.</para> 243 <para>Note that the UUID of a partition and the UUID of the filesystem 244 in this partition is completely different. Some online resources may 244 <literal>root=PARTUUID=<replaceable><UUID of the partition where LFS 245 is built></replaceable></literal>.</para> 246 <para>Note that the UUID of a partition is completely different from the 247 UUID of the filesystem in this partition. Some online resources may 245 248 instruct you to use 246 249 <literal>root=UUID=<replaceable><filesystem UUID></replaceable></literal> 247 250 instead of 248 251 <literal>root=PARTUUID=<replaceable><partition UUID></replaceable></literal>, 249 but doing so will require an initramfs which is beyond the scope of252 but doing so will require an initramfs, which is beyond the scope of 250 253 LFS.</para> 251 254 <para>The name of the device node for a partition in 252 <filename class='directory'>/dev</filename> may also change ( more253 unlikely than GRUB designator change though). You can also replace255 <filename class='directory'>/dev</filename> may also change (this is less 256 likely than a GRUB designator change). You can also replace 254 257 paths to device nodes like <literal>/dev/sda1</literal> with 255 258 <literal>PARTUUID=<replaceable><partition UUID></replaceable></literal>,
Note:
See TracChangeset
for help on using the changeset viewer.