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:
parent
611edda149
commit
6a37d23859
@ -93,6 +93,11 @@ qemu-guest-agent
|
|||||||
##### begin kickstart post ###########################################
|
##### begin kickstart post ###########################################
|
||||||
%post --erroronfail
|
%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
|
# Blivet sets pmbr_boot flag erroneously and we need to purge it
|
||||||
# otherwise it'll fail to boot
|
# otherwise it'll fail to boot
|
||||||
parted /dev/vda disk_set pmbr_boot off
|
parted /dev/vda disk_set pmbr_boot off
|
||||||
|
Loading…
Reference in New Issue
Block a user