mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-11-05 13:36:14 +01:00
fix: removed UEFI grub fonts file for fedora
This commit is contained in:
parent
3fa5e0f312
commit
179e2c21a1
11
install.sh
11
install.sh
@ -160,14 +160,6 @@ 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
|
||||||
|
|
||||||
@ -355,8 +347,7 @@ updating_grub() {
|
|||||||
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
|
||||||
# DON'T TOUCH UEFI
|
if [[ -f /etc/grub2.cfg ]]; then
|
||||||
if [[ -f /boot/efi/EFI/fedora/grub.cfg ]]; then
|
|
||||||
prompt -s "Find config file on /etc/grub2.cfg ...\n"
|
prompt -s "Find config file on /etc/grub2.cfg ...\n"
|
||||||
grub2-mkconfig -o /etc/grub2.cfg
|
grub2-mkconfig -o /etc/grub2.cfg
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user