From 627ecadf6b682ed2e61f03798091c88bfd558e04 Mon Sep 17 00:00:00 2001 From: Paride Legovini Date: Tue, 8 Oct 2019 10:37:12 +0200 Subject: [PATCH] inject-subiquity-snap: add support for ppc64 iso images --- scripts/inject-subiquity-snap.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/inject-subiquity-snap.sh b/scripts/inject-subiquity-snap.sh index 4c10543e..33ed18cf 100755 --- a/scripts/inject-subiquity-snap.sh +++ b/scripts/inject-subiquity-snap.sh @@ -201,3 +201,12 @@ if [ -e new_iso/boot/ubuntu.ikr ]; then -b boot/ubuntu.ikr -no-emul-boot \ new_iso/boot new_iso fi + +if [ -e new_iso/boot/grub/powerpc.elf ]; then + xorriso -as mkisofs -r -checksum_algorithm_iso md5,sha1 \ + -V Ubuntu\ custom\ amd64 \ + -o "${NEW_ISO}" \ + -cache-inodes -J -l \ + -chrp-boot-part \ + new_iso/boot new_iso +fi