# License: This file is licensed under the GPL v2 or any later version.
################################################################################
+# make sure we have the sbin directories in our PATH to find grml2usb ootb
+PATH="${PATH}:/sbin:/usr/local/sbin:/usr/sbin"
+
# define function getfilesize before "set -e" {{{
if stat --help >/dev/null 2>&1; then
getfilesize='stat -c %s' # GNU stat
fi
if ! which isohybrid >/dev/null 2>&1 ; then
- echo "Error: isohybrid executable not found (install syslinux/isolinux?)." >&2
+ echo "Error: isohybrid executable not found (install syslinux/isolinux/syslinux-utils?)." >&2
exit 1
fi
# }}}
during build. Defaults to /tmp/grml2iso.tmp if unset.
Examples:
- $0 -s http://192.168.23.42:8000/grml/ -o small.iso grml64_2010.12.iso
+ $0 -s http://192.168.23.42:8000/grml/ -o small.iso grml64-small_2018.12.iso
Will generate a file small.iso which tries to download the squashfs file from
http://192.168.23.42:8000/grml/ - the squashfs file is placed in the same
echo "isohybrid version supports --uefi option"
ISOHYBRID_OPTIONS=--uefi
fi
-
- echo "Creating dd-able ISO using isohybrid"
- isohybrid $ISOHYBRID_OPTIONS "$ISOFILE"
fi
+
+ echo "Creating dd-able ISO using isohybrid"
+ isohybrid $ISOHYBRID_OPTIONS "$ISOFILE"
# }}}
# cleanup {{{