mirror of
https://github.com/vinceliuice/grub2-themes.git
synced 2024-12-25 20:55:35 +01:00
Update install.sh to fix installation on Fedora 34 and later.
This commit is contained in:
parent
3f5624833d
commit
b5b4780418
@ -312,7 +312,7 @@ updating_grub() {
|
|||||||
elif has_command zypper; then
|
elif has_command zypper; then
|
||||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
elif has_command dnf; then
|
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"
|
prompt -i "Find config file on /boot/efi/EFI/fedora/grub.cfg ...\n"
|
||||||
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user