X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=remaster%2Fgrml-live-remaster;fp=remaster%2Fgrml-live-remaster;h=d4970a6cde8190df5278a2601e0380d7b781ae30;hp=92ef074787923fea190bc082637be41d344ad7a7;hb=7419019f1ed1f386e8ac723604f100928d66d388;hpb=f56cc0dac55553cae20708f122a247af787e8af5 diff --git a/remaster/grml-live-remaster b/remaster/grml-live-remaster index 92ef074..d4970a6 100755 --- a/remaster/grml-live-remaster +++ b/remaster/grml-live-remaster @@ -41,7 +41,20 @@ if ! isgrmlcd ; then fi # make sure we have what we need {{{ -check4progs mkisofs stat || exit 1 +if check4progs mkisofs >/dev/null 2>&1 ; then + MKISO=mkisofs +fi + +if check4progs genisoimage >/dev/null 2>&1 ; then + MKISO=genisoimage +fi + +if [ -z "$MKISO" ] ; then + echo "Error: neither mkisofs nor genisoimage available. Exiting." >&2 + exit 1 +fi + +check4progs stat || exit 1 # allow overriding via environment: if [ -z "$MKSQUASHFS" ] ; then @@ -141,7 +154,7 @@ else ISOLINUX_BOOTCAT=boot.cat fi -mkisofs -b $ISOLINUX -no-emul-boot -c $ISOLINUX_BOOTCAT \ +$MKISO -b $ISOLINUX -no-emul-boot -c $ISOLINUX_BOOTCAT \ -boot-info-table -boot-load-size 4 -no-pad \ -l -r -J -o "$1" /remaster/iso # pad for partition table