#!/bin/env sh grub_config=$(cat < "$2/boot/grub/grub.cfg" (cd "$2"; sha256sum -b -t "vmstupid.sys" > "boot/hashfile"; sha256sum -b -t "stpdboot.sys" >> "boot/hashfile" ) grub-file --is-x86-multiboot "$2/stpdboot.sys" || exit 1 grub-mkrescue -o $1 $2 } gen_iso_file "$1" "$2"