#!/bin/bash
set -ex
cd /mnt/centos/composes/stream-8/odcs-5532/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-8-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-8-20240603.d.0-aarch64-dvd1.iso -graft-points -path-list /mnt/centos/composes/stream-8/odcs-5532/work/aarch64/iso/CentOS-Stream-8-20240603.d.0-aarch64-dvd1.iso-graft-points
/usr/bin/implantisomd5 CentOS-Stream-8-20240603.d.0-aarch64-dvd1.iso
isoinfo -R -f -i CentOS-Stream-8-20240603.d.0-aarch64-dvd1.iso | grep -v '/TRANS.TBL$' | sort >> CentOS-Stream-8-20240603.d.0-aarch64-dvd1.iso.manifest
