mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 07:15:36 +01:00
Fixed issues
This commit is contained in:
parent
a69383892e
commit
8357e49262
20
install.sh
20
install.sh
@ -158,6 +158,14 @@ install() {
|
|||||||
#Append GRUB_FONT
|
#Append GRUB_FONT
|
||||||
echo "GRUB_FONT=/boot/grub2/fonts/unicode.pf2" >> /etc/default/grub
|
echo "GRUB_FONT=/boot/grub2/fonts/unicode.pf2" >> /etc/default/grub
|
||||||
fi
|
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
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -325,6 +333,8 @@ run_dialog() {
|
|||||||
5) screen="ultrawide2k" ;;
|
5) screen="ultrawide2k" ;;
|
||||||
*) operation_canceled ;;
|
*) operation_canceled ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
clear
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -342,9 +352,13 @@ updating_grub() {
|
|||||||
elif has_command zypper || has_command transactional-update; then
|
elif has_command zypper || has_command transactional-update; then
|
||||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
# Check for Fedora (regular or Atomic)
|
# Check for Fedora (regular or Atomic)
|
||||||
elif has_command dnf || has_command rpm-ostree; then
|
elif has_command dnf || has_command rpm-ostree; then
|
||||||
#Check for BIOS
|
# Check for UEFI
|
||||||
if [[ -f /boot/grub2/grub.cfg ]]; then
|
if [[ -f /boot/efi/EFI/fedora/grub.cfg ]]; then
|
||||||
|
prompt -s "Find config file on /boot/efi/EFI/fedora/grub.cfg ...\n"
|
||||||
|
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
||||||
|
# Check for BIOS
|
||||||
|
elif [[ -f /boot/grub2/grub.cfg ]]; then
|
||||||
prompt -s "Find config file on /boot/grub2/grub.cfg ...\n"
|
prompt -s "Find config file on /boot/grub2/grub.cfg ...\n"
|
||||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user