X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=grml2iso;h=8e4e06af502220b5eafee04c5b068762867db050;hb=f5e949b339a40e04094d0e066a06a547afcdf4e9;hp=661ef86fa5fd45c99e8200ea77cedfdc41e1aca8;hpb=863f75014eac9dc7ba1bc5711080e9ded5602b93;p=grml2usb.git diff --git a/grml2iso b/grml2iso index 661ef86..8e4e06a 100755 --- a/grml2iso +++ b/grml2iso @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Filename: grml2iso # Purpose: create a multiboot grml ISO using grml2usb # Authors: Michael Prokop , @@ -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" .