From cd5eaf3b844ac91ced7cb97a8246e0494fce9d29 Mon Sep 17 00:00:00 2001 From: pakaoraki Date: Sat, 8 May 2021 01:14:55 +0200 Subject: [PATCH] Fix missing unicode.pf2 in fedora --- install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/install.sh b/install.sh index 7cfb6d2..f382480 100755 --- a/install.sh +++ b/install.sh @@ -117,6 +117,18 @@ install() { # Backup grub config cp -an /etc/default/grub /etc/default/grub.bak + + # Fedora workaround to fix the missing unicode.pf2 file (tested on fedora 34): https://bugzilla.redhat.com/show_bug.cgi?id=1739762 + # This occurs when we add a theme on grub2 with Fedora. + if has_command dnf; 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 if grep "GRUB_THEME=" /etc/default/grub 2>&1 >/dev/null; then #Replace GRUB_THEME