check for mkfs.msdos existence, recommend dosfstools URL for installation
This commit is contained in:
parent
d6ee2de6ce
commit
53a7a1fc10
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user