diff options
-rwxr-xr-x | scripts/mkimg.base.sh | 36 | ||||
-rwxr-xr-x | scripts/mkimg.standard.sh | 1 |
2 files changed, 25 insertions, 12 deletions
diff --git a/scripts/mkimg.base.sh b/scripts/mkimg.base.sh index 7eedb022e0..bcfcc7168e 100755 --- a/scripts/mkimg.base.sh +++ b/scripts/mkimg.base.sh @@ -190,6 +190,13 @@ build_grubefi_img() { mcopy -s -i ${DESTDIR}/boot/grub/efiboot.img $_tmpdir/efi :: } +section_grubieee1275() { + [ "$ARCH" = ppc64le ] || return 0 + [ "$output_format" = "iso" ] || return 0 + + build_section grub_cfg boot/grub/grub.cfg $(grub_gen_config | checksum) +} + section_grubefi() { [ -n "$grub_mod" ] || return 0 [ "$output_format" = "iso" ] || return 0 @@ -249,18 +256,23 @@ create_image_iso() { " fi fi - xorrisofs \ - -quiet \ - -output ${ISO} \ - -full-iso9660-filenames \ - -joliet \ - -rock \ - -volid "alpine-$PROFILE $RELEASE $ARCH" \ - $_isolinux \ - $_efiboot \ - -follow-links \ - ${iso_opts} \ - ${DESTDIR} + + if [ "$ARCH" = ppc64le ]; then + grub-mkrescue --output ${ISO} ${DESTDIR} -follow-links + else + xorrisofs \ + -quiet \ + -output ${ISO} \ + -full-iso9660-filenames \ + -joliet \ + -rock \ + -volid "alpine-$PROFILE $RELEASE $ARCH" \ + $_isolinux \ + $_efiboot \ + -follow-links \ + ${iso_opts} \ + ${DESTDIR} + fi } create_image_targz() { diff --git a/scripts/mkimg.standard.sh b/scripts/mkimg.standard.sh index 54c7b80021..6bc01e8431 100755 --- a/scripts/mkimg.standard.sh +++ b/scripts/mkimg.standard.sh @@ -10,6 +10,7 @@ profile_standard() { profile_vanilla() { profile_standard #arch="$arch aarch64" + arch="$arch ppc64le" kernel_flavors="vanilla" kernel_addons= } |