--- util/geniso.orig 2015-06-05 20:26:05 UTC +++ util/geniso @@ -2,7 +2,7 @@ # # Generate a isolinux ISO boot image -function help() { +help() { echo "usage: ${0} [OPTIONS] foo.lkrn [bar.lkrn,...]" echo echo "where OPTIONS are:" @@ -40,7 +40,7 @@ fi # There should either be mkisofs or the compatible genisoimage program for command in genisoimage mkisofs; do if ${command} --version >/dev/null 2>/dev/null; then - mkisofs=(${command}) + mkisofs=${command} break fi done @@ -53,9 +53,9 @@ fi dir=$(mktemp -d bin/iso.dir.XXXXXX) cfg=${dir}/isolinux.cfg -mkisofs+=(-quiet -l -volid "iPXE" -preparer "iPXE build system" - -appid "iPXE ${VERSION} - Open Source Network Boot Firmware" - -publisher "http://ipxe.org/" -c boot.cat) +mkisofs="$mkisofs -quiet -l -volid \"iPXE\" -preparer \"iPXE build system\"" +mkisofs="$mkisofs -appid \"iPXE ${VERSION} - Open Source Network Boot Firmware\"" +mkisofs="$mkisofs -publisher \"http://ipxe.org/\" -c boot.cat" # generate the config cat > ${cfg} </dev/null 2>/dev/null; then