From b5b47804180cf23a24d65f49c15fe2b2f1a914c3 Mon Sep 17 00:00:00 2001 From: Joshua Noeske Date: Sat, 26 Mar 2022 10:50:37 +0100 Subject: [PATCH] Update install.sh to fix installation on Fedora 34 and later. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ec4f004..18e962b 100755 --- a/install.sh +++ b/install.sh @@ -312,7 +312,7 @@ updating_grub() { elif has_command zypper; then grub2-mkconfig -o /boot/grub2/grub.cfg elif has_command dnf; then - if [[ -f /boot/efi/EFI/fedora/grub.cfg ]]; then + if [[ -f /boot/efi/EFI/fedora/grub.cfg ]] && (( $(cat /etc/fedora-release | awk '{print $3}') < 34 )); then prompt -i "Find config file on /boot/efi/EFI/fedora/grub.cfg ...\n" grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg fi