X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2iso;h=8e4e06af502220b5eafee04c5b068762867db050;hp=10f270c44c0d6b50e221b5fff45f61cc62d5d021;hb=f5e949b339a40e04094d0e066a06a547afcdf4e9;hpb=a3cf9517aca88f8c708ccdc9991842c5f77ee51a diff --git a/grml2iso b/grml2iso index 10f270c..8e4e06a 100755 --- a/grml2iso +++ b/grml2iso @@ -23,6 +23,15 @@ [ -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 {{{ @@ -124,7 +133,7 @@ Options: # }}} # 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" .