trap diff exit code, hint xorriso -pvd_info

This commit is contained in:
George Danchev 2011-06-23 16:09:47 +00:00
parent ee1cc8a22e
commit 7b5ebb8e06

View File

@ -132,8 +132,17 @@ jigit-mkimage \
-m Debian=${DIR} \ -m Debian=${DIR} \
-o ${IMG}.new -o ${IMG}.new
# diff'em TODO: trap the exit code of diff and let the Universe explode # trap the exit code of diff and let the Universe explode
diff ${IMG}.iso ${IMG}.new diff ${IMG}.iso ${IMG}.new
DIFF_RET="$?"
case ${DIFF_RET} in
0)
echo -e "$0: diff ${IMG}.iso ${IMG}.new matched.\n"
;;
*)
echo -e "$0: ATTN: diff returned code: $DIFF_RET\n"
;;
esac
# sort out the cruft # sort out the cruft
if [ ${CLEAN} -eq 1 ]; then if [ ${CLEAN} -eq 1 ]; then
@ -147,6 +156,7 @@ fi
printf "\n$0: HINT: manual checks remained to be done:\n" printf "\n$0: HINT: manual checks remained to be done:\n"
printf " * ${IMG}.img boots from USB stick and/or optical media.\n" printf " * ${IMG}.img boots from USB stick and/or optical media.\n"
printf " * appended FAT partition is mountable.\n" printf " * appended FAT partition is mountable.\n"
printf " * xorriso -indev ${IMG}.iso -pvd_info\n"
printf " * fdisk -lu ${IMG}.iso\n" printf " * fdisk -lu ${IMG}.iso\n"
} }