#!/bin/bash
set -ex
cd /mnt/centos/composes/odcs-1552/compose/BaseOS/aarch64/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 CentOS-Stream-9-BaseOS-aarch64 -J -joliet-long -rational-rock -translation-table -input-charset utf-8 -x ./lost+found -eltorito-alt-boot -e images/efiboot.img -no-emul-boot -o CentOS-Stream-9-20220126.0-aarch64-dvd1.iso -graft-points -path-list /mnt/centos/composes/odcs-1552/work/aarch64/iso/CentOS-Stream-9-20220126.0-aarch64-dvd1.iso-graft-points
/usr/bin/implantisomd5 --supported-iso CentOS-Stream-9-20220126.0-aarch64-dvd1.iso
isoinfo -R -f -i CentOS-Stream-9-20220126.0-aarch64-dvd1.iso | grep -v '/TRANS.TBL$' | sort >> CentOS-Stream-9-20220126.0-aarch64-dvd1.iso.manifest
