Skip to content

Commit

Permalink
create_disk.sh: using the target system's grub2-install to install
Browse files Browse the repository at this point in the history
BIOS/PReP bootloader

Fix coreos#3156
  • Loading branch information
HuijingHei committed Nov 11, 2022
1 parent ca5248b commit da85b62
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/create_disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,9 @@ x86_64)
if [ "${x86_bios_bootloader}" = 1 ]; then
# And BIOS grub in addition. See also
# https://github.com/coreos/fedora-coreos-tracker/issues/32
grub2-install \
# Install BIOS/PReP bootloader using the target system's grub2-install,
# see https://github.com/coreos/coreos-assembler/issues/3156
chroot_run /sbin/grub2-install \
--target i386-pc \
--boot-directory $rootfs/boot \
--modules mdraid1x \
Expand All @@ -489,7 +491,7 @@ aarch64)
;;
ppc64le)
# to populate PReP Boot, i.e. support pseries
grub2-install --target=powerpc-ieee1275 --boot-directory $rootfs/boot --no-nvram "${disk}${PREPPN}"
chroot_run /sbin/grub2-install --target=powerpc-ieee1275 --boot-directory $rootfs/boot --no-nvram "${disk}${PREPPN}"
install_grub_cfg
;;
s390x)
Expand Down

0 comments on commit da85b62

Please sign in to comment.