From 21c65cf32b1a322b9d5709111a1854f5ec971a32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Wed, 26 Dec 2018 14:55:32 +0100 Subject: [PATCH] Generate the isofile with genisoimage --- make.iso.preseed.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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