File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -476,7 +476,9 @@ x86_64)
476476 if [ " ${x86_bios_bootloader} " = 1 ]; then
477477 # And BIOS grub in addition. See also
478478 # https://github.com/coreos/fedora-coreos-tracker/issues/32
479- grub2-install \
479+ # Install BIOS/PReP bootloader using the target system's grub2-install,
480+ # see https://github.com/coreos/coreos-assembler/issues/3156
481+ chroot_run /sbin/grub2-install \
480482 --target i386-pc \
481483 --boot-directory $rootfs /boot \
482484 --modules mdraid1x \
@@ -489,7 +491,7 @@ aarch64)
489491 ;;
490492ppc64le)
491493 # to populate PReP Boot, i.e. support pseries
492- grub2-install --target=powerpc-ieee1275 --boot-directory $rootfs /boot --no-nvram " ${disk}${PREPPN} "
494+ chroot_run /sbin/ grub2-install --target=powerpc-ieee1275 --boot-directory $rootfs /boot --no-nvram " ${disk}${PREPPN} "
493495 install_grub_cfg
494496 ;;
495497s390x)
You can’t perform that action at this time.
0 commit comments