Skip to content

Commit 255ff1d

Browse files
HuijingHeicgwalters
authored andcommittedNov 18, 2022
create_disk.sh: using the target system's grub2-install to install
BIOS/PReP bootloader Fix #3156
1 parent 0a04963 commit 255ff1d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed
 

‎src/create_disk.sh

+4-2
Original file line numberDiff line numberDiff 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
;;
490492
ppc64le)
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
;;
495497
s390x)

0 commit comments

Comments
 (0)
Please sign in to comment.