mirror of
https://github.com/rocky-linux/rocky-tools.git
synced 2024-12-28 20:50:54 +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
1 changed files with 5 additions and 0 deletions
|
@ -1212,6 +1212,9 @@ efi_check () {
|
|||
elif [[ -d /sys/firmware/efi/ ]]; then
|
||||
declare -g update_efi
|
||||
update_efi=true
|
||||
else
|
||||
declare -g update_bios
|
||||
update_bios=true
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -1305,6 +1308,8 @@ fi
|
|||
|
||||
if [[ $update_efi && $convert_to_rocky ]]; then
|
||||
fix_efi
|
||||
elif [[ $update_bios && $convert_to_rocky ]]; then
|
||||
grub2-mkconfig -o /boot/grub2/grub.cfg
|
||||
fi
|
||||
|
||||
printf '\n\n\n'
|
||||
|
|
Loading…
Reference in a new issue