Changeset 564a569


Ignore:
Timestamp:
05/31/2021 06:28:20 AM (2 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
trunk
Children:
95df066
Parents:
ad34447a
Message:

grub setup: don't mount efivarfs again if it's already mounted

File:
1 edited

Legend:

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

    rad34447a r564a569  
    238238      The installation of GRUB on a UEFI platform requires that the EFI Variable
    239239      file system, <systemitem class="filesystem">efivarfs</systemitem>, to be
    240       mounted.  As the <systemitem class="username">root</systemitem> user:
    241     </para>
    242 
    243 <screen role="nodump"><userinput>mount -v -t efivarfs efivarfs /sys/firmware/efi/efivars</userinput></screen>
     240      mounted.  As the <systemitem class="username">root</systemitem> user,
     241      mount it if it's not already mounted:
     242    </para>
     243
     244<screen role="nodump"><userinput>mountpoint /sys/firmware/efi/efivars || mount -v -t efivarfs efivarfs /sys/firmware/efi/efivars</userinput></screen>
    244245
    245246    <note revision="systemd">
Note: See TracChangeset for help on using the changeset viewer.