#!/bin/sh
set -x
if [ "$1" = "--squashfs" ]; then
mksquashfs $2 $3/casper/filesystem.squashfs;
shift
shift
fi
#mkisofs \
# -isohybrid-mbr syslinux/usr/lib/syslinux/isohdpfx.bin \
xorriso -as mkisofs -r -checksum_algorithm_iso md5,sha1 \
-V Ubuntu\ custom\ amd64 \
-o `pwd`/custom.iso \
-cache-inodes -J -l \
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-boot-load-size 4 -boot-info-table \
-eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \
-isohybrid-gpt-basdat -isohybrid-apm-hfsplus \
-isohybrid-mbr isohdpfx.bin \
$1/boot $1