Changeset 1203312 for chapter10/grub.xml
- Timestamp:
- 09/01/2022 11:27:01 AM (2 years ago)
- Branches:
- xry111/clfs-ng
- Children:
- 6c952e3
- Parents:
- 9023df4 (diff), baecd49 (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
r9023df4 r1203312 142 142 </para></note> 143 143 144 <note> 145 <para>The GRUB designator for a partition may change if you added or 146 removed some disks (including removable disks like USB thumb devices). 147 The change may cause boot failure because 148 <filename>grub.cfg</filename> refers to some <quote>old</quote> 149 designators. If you wish to avoid such a problem, you may use 150 the UUID of partition and filesystem instead of GRUB designator to 151 specify a partition. 152 Run <command>lsblk -o UUID,PARTUUID,PATH,MOUNTPOINT</command> to show 153 the UUID of your filesystems (in <literal>UUID</literal> column) and 154 partitions (in <literal>PARTUUID</literal> column). Then replace 155 <literal>set root=(hdx,y)</literal> with 156 <literal>search --set=root --fs-uuid <replaceable><UUID of the filesystem where the kernel is installed></replaceable></literal>, and replace 157 <literal>root=/dev/sda2</literal> with 158 <literal>root=PARTUUID=<replaceable><UUID of the partition where LFS is built></replaceable></literal>.</para> 159 <para>Note that the UUID of a partition and the UUID of the filesystem 160 in this partition is completely different. Some online resources may 161 instruct you to use 162 <literal>root=UUID=<replaceable><filesystem UUID></replaceable></literal> 163 instead of 164 <literal>root=PARTUUID=<replaceable><partition UUID></replaceable></literal>, 165 but doing so will require an initramfs which is beyond the scope of 166 LFS.</para> 167 <para>The name of the device node for a partition in 168 <filename class='directory'>/dev</filename> may also change (more 169 unlikely than GRUB designator change though). You can also replace 170 paths to device nodes like <literal>/dev/sda1</literal> with 171 <literal>PARTUUID=<replaceable><partition UUID></replaceable></literal>, 172 in <filename>/etc/fstab</filename>, to avoid a potential boot failure 173 in case the device node name has changed.</para> 174 </note> 175 144 176 <para>GRUB is an extremely powerful program and it provides a tremendous 145 177 number of options for booting from a wide variety of devices, operating
Note:
See TracChangeset
for help on using the changeset viewer.