From e6ef2e456fbf611e51b4dae683d5fd8871b02c6f Mon Sep 17 00:00:00 2001 From: George Danchev Date: Sun, 3 Jul 2011 17:07:56 +0000 Subject: [PATCH] check for mkfs.msdos existence, recommend dosfstools URL for installation --- releng/releng_isojigdo | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/releng/releng_isojigdo b/releng/releng_isojigdo index 84ca62d3..f9dba046 100755 --- a/releng/releng_isojigdo +++ b/releng/releng_isojigdo @@ -175,7 +175,14 @@ dd if="${TMP_DATA_DIR}/${REMOTE_IMG}" bs=1K count=32 of="${ISOHYBRID_MBR}" # create FAT partition APPEND_PART="${GEN_DATA_DIR}/fatpart.fat" -/sbin/mkfs.msdos -n Bla -C "${APPEND_PART}" 8192 +MKFS_MSDOS="/sbin/mkfs.msdos" +if [ -x "${MKFS_MSDOS}" ]; then + "${MKFS_MSDOS}" -n Bla -C "${APPEND_PART}" 8192 +else + printf "\n${SELF}: Not found: "${MKFS_MSDOS}". Install dosfstools." + printf "\n${SELF}: http://www.daniel-baumann.ch/software/dosfstools/\n" + exit 12 +fi # GENERAL section CMD="${RELENG_XORRISO} \ @@ -200,7 +207,7 @@ CMD+="\ " else printf "\n${SELF}: FAIL to compose the boot section.\n" - exit 12 + exit 13 fi # JIGDO section @@ -218,7 +225,7 @@ if which jigdo-gen-md5-list >/dev/null 2>&1; then else printf "\n${SELF}: Not found: jigdo-gen-md5-list. Install jigit." printf "\n${SELF}: See http://www.einval.com/~steve/software/JTE/\n" - exit 13 + exit 14 fi CMD+="\ @@ -250,7 +257,7 @@ if which jigit-mkimage >/dev/null 2>&1; then else printf "\n${SELF}: Not found: jigit-mkimage. Install jigit." printf "\n${SELF}: See http://www.einval.com/~steve/software/JTE/\n" - exit 14 + exit 15 fi # trap the exit code of diff and let the Universe explode