Changeset 0821043 for postlfs


Ignore:
Timestamp:
08/16/2023 01:47:13 PM (10 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
Children:
17b1ad9
Parents:
a9779b9
git-author:
Xi Ruoyao <xry111@…> (08/16/2023 01:43:45 PM)
git-committer:
Xi Ruoyao <xry111@…> (08/16/2023 01:47:13 PM)
Message:

grub-setup: Simplify the command mounting ESP

Add the fstab entry before mounting the partition, so we can omit device
node path and mount option. Also use --mkdir option so we don't need
mkdir -pv.

By the way bump the kernel version and LFS version in example grub.cfg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/filesystems/uefi-bootloaders/grub-setup.xml

    ra9779b9 r0821043  
    192192
    193193    <para>
    194       Now, as the <systemitem class="username">root</systemitem> user,
    195       create the mount point for the ESP, and mount it (replace
     194      As the &root; user, add an entry for the ESP in
     195      <filename>/etc/fstab</filename>, so it will be mounted automatically
     196      during system boot (replace
    196197      <userinput>sda1</userinput> with the device node corresponding to
    197198      the ESP):
    198     </para>
    199 
    200 <screen role="nodump"><userinput>mkdir -pv /boot/efi &amp;&amp;
    201 mount -v -t vfat /dev/sda1 /boot/efi</userinput></screen>
    202 
    203     <para>
    204       Add an entry for the ESP in
    205       <filename>/etc/fstab</filename>, so it will be mounted automatically
    206       during system boot:
    207199    </para>
    208200
     
    210202<literal>/dev/sda1 /boot/efi vfat codepage=437,iocharset=iso8859-1 0 1</literal>
    211203<userinput>EOF</userinput></screen>
     204
     205    <para>
     206      Still as the &root; user,
     207      create the mount point for the ESP and mount it:
     208    </para>
     209
     210<screen role="nodump"><userinput>mount /boot/efi --mkdir</userinput></screen>
    212211
    213212  </sect2>
     
    444443fi
    445444
    446 menuentry "GNU/Linux, Linux 6.1.11-lfs-11.3"  {
    447   linux   /boot/vmlinuz-6.1.11-lfs-11.3 root=/dev/sda2 ro
     445menuentry "GNU/Linux, Linux 6.4.10-lfs-12.0"  {
     446  linux   /boot/vmlinuz-6.4.10-lfs-12.0 root=/dev/sda2 ro
    448447}
    449448
Note: See TracChangeset for help on using the changeset viewer.