From 6a37d23859a80eb8787f3a8ee464a3800daa8722 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Tue, 6 Jul 2021 15:00:54 -0400 Subject: [PATCH] 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: 611edda1490ebb93d996acb29692805ec9e481d3 Signed-off-by: Neal Gompa --- fedora-cloud-base.ks | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fedora-cloud-base.ks b/fedora-cloud-base.ks index dc93330..fbc132f 100644 --- a/fedora-cloud-base.ks +++ b/fedora-cloud-base.ks @@ -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