Install efibootmgr in UEFI systems

This commit is contained in:
Augusto Gunsch 2021-08-13 11:19:57 -03:00
parent 8bf20f8fe2
commit 85b5b4cd3d
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
1 changed files with 2 additions and 1 deletions

View File

@ -262,7 +262,8 @@ set_locale() {
setup_grub() { setup_grub() {
echo -n "Configuring boot loader..." echo -n "Configuring boot loader..."
if [ $UEFI -eq 1 ]; then if [ $UEFI -eq 1 ]; then
quiet right_chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub quiet right_basestrap /mnt efibootmgr
quiet right_chroot /mnt grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
else else
quiet right_chroot /mnt grub-install --target=i386-pc "$DRIVE_TARGET" quiet right_chroot /mnt grub-install --target=i386-pc "$DRIVE_TARGET"
fi fi