#!/bin/bash
set -ex
cd /mnt/compose/8/Circle-8.10-20250307.0/compose/BaseOS/ppc64le/iso
if ! TEMPLATE="$($(head -n1 $(which lorax) | cut -c3-) -c 'import pylorax; print(pylorax.find_templates())')"; then TEMPLATE=/usr/share/lorax; fi
/usr/bin/genisoimage -untranslated-filenames -volid Circle-8-10-ppc64le-dvd -J -joliet-long -rational-rock -translation-table -x ./lost+found -r -l -sysid PPC -chrp-boot -o Circle-8.10-ppc64le-dvd1.iso -graft-points -path-list /mnt/compose/8/Circle-8.10-20250307.0/work/ppc64le/iso/Circle-8.10-ppc64le-dvd1.iso-graft-points
/usr/bin/implantisomd5 --supported-iso Circle-8.10-ppc64le-dvd1.iso
isoinfo -R -f -i Circle-8.10-ppc64le-dvd1.iso | grep -v '/TRANS.TBL$' | sort >> Circle-8.10-ppc64le-dvd1.iso.manifest
