Skip to content

Commit

Permalink
EFI boot support for Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
igaichenkov committed Mar 22, 2020
1 parent fe27cbc commit cc30f37
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,15 @@ if [ -e /etc/os-release ]; then
elif [[ "$ID" =~ (centos|fedora|opensuse) || \
"$ID_LIKE" =~ (fedora|rhel|suse) ]]; then

GRUB_CFG_PATH='/boot/grub2/grub.cfg'

if [ -d /boot/efi/EFI/fedora ]
then
GRUB_CFG_PATH='/boot/efi/EFI/fedora/grub.cfg'
fi

GRUB_DIR='grub2'
UPDATE_GRUB='grub2-mkconfig -o /boot/grub2/grub.cfg'
UPDATE_GRUB="grub2-mkconfig -o $GRUB_CFG_PATH"
fi
fi

Expand Down

0 comments on commit cc30f37

Please sign in to comment.