cd "$(dirname "$0")"

cp preseed/preseed.cfg source/preseed.cfg
cp preseed/gtk.cfg source/isolinux/gtk.cfg
mkdir source/files
cp preseed/late_command.sh source/files/late_command.sh

cd source

xorriso -as mkisofs \
-o ../images/debian-angestoepselt.iso \
-c isolinux/boot.cat \
-b isolinux/isolinux.bin \
-no-emul-boot \
-boot-load-size 4 \
-boot-info-table \
-eltorito-alt-boot \
-e boot/grub/efi.img \
-no-emul-boot \
-isohybrid-gpt-basdat \
. 
