From 9489f3ba6d6403086611c3560ceda806eda64901 Mon Sep 17 00:00:00 2001 From: Tomas M Date: Thu, 18 May 2017 03:53:31 -0500 Subject: [PATCH] support genisoimage as well as mkisofs --- build | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build b/build index 6cc50f8..52145b4 100755 --- a/build +++ b/build @@ -21,6 +21,15 @@ if [ "$(mksquashfs 2>&1 | grep "Xdict-size")" = "" ]; then exit 1 fi +MKISOFS=$(which mkisofs) +if [ "$MKISOFS" = "" ]; then + MKISOFS=$(which genisoimage) +fi +if [ "$MKISOFS" = "" ]; then + echo "Cannot found mkisofs or genisoimage, stop" + exit 3 +fi + # build initramfs image echo "Building intramfs image..." cd initramfs @@ -63,7 +72,7 @@ fi ARCH=$(uname -m) -mkisofs -o "$TARGET/$LIVEKITNAME-$ARCH.iso" -v -J -R -D -A "$LIVEKITNAME" -V "$LIVEKITNAME" \ +$MKISOFS -o "$TARGET/$LIVEKITNAME-$ARCH.iso" -v -J -R -D -A "$LIVEKITNAME" -V "$LIVEKITNAME" \ -no-emul-boot -boot-info-table -boot-load-size 4 \ -b "$LIVEKITNAME"/boot/isolinux.bin -c "$LIVEKITNAME"/boot/isolinux.boot . \ >/dev/null 2>/dev/null