#!/bin/zsh
DO=$0
main() {
	args fstab sha256sum \
		volid=srcd_sup
		filename=$DO:h/work/$TARGET.iso
	depend sysresccd-supplemented build_dir:iso_dir fstab:
	fstab-mounted
	eval $(getvars)

	local -a cmd
	cmd=(
		xorriso -as mkisofs -joliet -rock
		-omit-version-number
		-disable-deep-relocation
		-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
		-o $filename
		-volid $volid
		$iso_dir
	)
	$cmd || die "Could not make ISO image"

	dep_add_file $filename sha256sum
}
. ./common.zsh
# vim: fileencoding=utf8 ft=zsh noet sw=4 ts=4 sts=4