diff --git a/make.iso.preseed.sh b/make.iso.preseed.sh index 928ce76..156cb97 100755 --- a/make.iso.preseed.sh +++ b/make.iso.preseed.sh @@ -16,6 +16,7 @@ DEBIAN_ISO_MINI_URL="http://ftp.nl.debian.org/debian/dists/${DEBIAN_VERSION_NAME TEMP_DIR_ISO=$(mktemp -d -t debian-iso-XXXXXX.tmp) DEBIAN_DL_ISO_PATH="${TEMP_DIR_ISO}/debian.iso" +DEBIAN_PRESEED_ISO_PATH="$(dirname ${TEMP_DIR_ISO})/preseed-debian-${DEBIAN_VERSION_NB}-amd64.iso" # }}} @@ -32,6 +33,10 @@ if [ ! $(command -v gzip) ]; then printf '%b\n' "ERROR : Please install 'gzip' bin :\\nsudo apt install gzip" exit 1 fi +if [ ! $(command -v genisoimage) ]; then + printf '%b\n' "ERROR : Please install 'genisoimage' bin :\\nsudo apt install genisoimage" + exit 1 +fi # }}} # Test vars {{{ @@ -100,7 +105,9 @@ find . -follow -type f -not \( -name "md5sum.txt" -o -name 'mkisofs' -o -name 'B cd - || exit 2 # }}} # Generate new bootable iso {{{ - +genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat \ +-quiet -no-emul-boot -boot-load-size 4 -boot-info-table \ +-o "${DEBIAN_PRESEED_ISO_PATH}" "${TEMP_DIR_ISO}" # }}} # If extract image