From 179e2c21a1b7e0c1140dc20f635d9ccd76321d7d Mon Sep 17 00:00:00 2001 From: OneRandom1509 Date: Tue, 12 Mar 2024 13:16:39 +0530 Subject: [PATCH] fix: removed UEFI grub fonts file for fedora --- install.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/install.sh b/install.sh index 800d3ca..9598699 100755 --- a/install.sh +++ b/install.sh @@ -160,14 +160,6 @@ install() { #Append GRUB_FONT echo "GRUB_FONT=/boot/grub2/fonts/unicode.pf2" >> /etc/default/grub fi - elif [[ -f "/boot/efi/EFI/fedora/fonts/unicode.pf2" ]]; then - if grep "GRUB_FONT=" /etc/default/grub 2>&1 >/dev/null; then - #Replace GRUB_FONT - sed -i "s|.*GRUB_FONT=.*|GRUB_FONT=/boot/efi/EFI/fedora/fonts/unicode.pf2|" /etc/default/grub - else - #Append GRUB_FONT - echo "GRUB_FONT=/boot/efi/EFI/fedora/fonts/unicode.pf2" >> /etc/default/grub - fi fi fi @@ -354,9 +346,8 @@ updating_grub() { elif has_command zypper || has_command transactional-update; then grub2-mkconfig -o /boot/grub2/grub.cfg # Check for Fedora (regular or Atomic) - elif has_command dnf || has_command rpm-ostree; then - # DON'T TOUCH UEFI - if [[ -f /boot/efi/EFI/fedora/grub.cfg ]]; then + elif has_command dnf || has_command rpm-ostree; then + if [[ -f /etc/grub2.cfg ]]; then prompt -s "Find config file on /etc/grub2.cfg ...\n" grub2-mkconfig -o /etc/grub2.cfg fi