1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-22 15:33:07 +00:00

Ensure Fedora Cloud has grub installed for BIOS boot on x86_64

Without this, there is no guarantee that BIOS would
be correctly set up if the install environment is UEFI.

Fixes: 611edda149

Signed-off-by: Neal Gompa <ngompa13@gmail.com>
This commit is contained in:
Neal Gompa 2021-07-06 15:00:54 -04:00
parent 611edda149
commit 6a37d23859

View File

@ -93,6 +93,11 @@ qemu-guest-agent
##### begin kickstart post ###########################################
%post --erroronfail
if [ "$(arch)" = "x86_64" ]; then
# Set up legacy BIOS boot if we booted from UEFI
grub2-install --target=i386-pc /dev/vda
fi
# Blivet sets pmbr_boot flag erroneously and we need to purge it
# otherwise it'll fail to boot
parted /dev/vda disk_set pmbr_boot off