support genisoimage as well as mkisofs

pull/23/merge
Tomas M 2017-05-18 03:53:31 -05:00
parent c154e24f2f
commit 9489f3ba6d
1 changed files with 10 additions and 1 deletions

11
build
View File

@ -21,6 +21,15 @@ if [ "$(mksquashfs 2>&1 | grep "Xdict-size")" = "" ]; then
exit 1 exit 1
fi 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 # build initramfs image
echo "Building intramfs image..." echo "Building intramfs image..."
cd initramfs cd initramfs
@ -63,7 +72,7 @@ fi
ARCH=$(uname -m) 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 \ -no-emul-boot -boot-info-table -boot-load-size 4 \
-b "$LIVEKITNAME"/boot/isolinux.bin -c "$LIVEKITNAME"/boot/isolinux.boot . \ -b "$LIVEKITNAME"/boot/isolinux.bin -c "$LIVEKITNAME"/boot/isolinux.boot . \
>/dev/null 2>/dev/null >/dev/null 2>/dev/null