[ -n "$GRML2USB" ] || GRML2USB='grml2usb'
# work directory for creating the filesystem
[ -n "$WRKDIR" ] || WRKDIR='/tmp/grml2iso.tmp'
+# support mkisofs as well as genisoimage
+ if which mkisofs >/dev/null 2>&1; then
+ MKISOFS='mkisofs'
+ elif which genisoimage >/dev/null 2>&1; then
+ MKISOFS='genisoimage'
+ else
+ echo >&2 "Error: neither mkisofs nor genisoimage available - can not create ISO."
+ exit 1
+fi
# }}}
# helper stuff {{{
# }}}
# generate the CD/DVD ISO {{{
- mkisofs -V 'grml-multiboot' -l -r -J -no-pad \
+ $MKISOFS -V 'grml-multiboot' -l -r -J -no-pad \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
-o "$ISOFILE" .