mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-11-28 07:56:26 +00:00
Fix grub for users, that use old-school BIOS boot.
On a machine that is UEFI capable, but boots in old-school BIOS mode, the system is rendered unbootable if you do not update grub.
This commit is contained in:
parent
f3fe6d768a
commit
836e33885a
@ -1212,6 +1212,9 @@ efi_check () {
|
|||||||
elif [[ -d /sys/firmware/efi/ ]]; then
|
elif [[ -d /sys/firmware/efi/ ]]; then
|
||||||
declare -g update_efi
|
declare -g update_efi
|
||||||
update_efi=true
|
update_efi=true
|
||||||
|
else
|
||||||
|
declare -g update_bios
|
||||||
|
update_bios=true
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1305,6 +1308,8 @@ fi
|
|||||||
|
|
||||||
if [[ $update_efi && $convert_to_rocky ]]; then
|
if [[ $update_efi && $convert_to_rocky ]]; then
|
||||||
fix_efi
|
fix_efi
|
||||||
|
elif [[ $update_bios && $convert_to_rocky ]]; then
|
||||||
|
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf '\n\n\n'
|
printf '\n\n\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user