From: Kees Jongenburger Date: Wed, 10 Apr 2013 14:58:46 +0000 (+0200) Subject: arm_sdimage:hide non fatal errors. X-Git-Tag: v3.3.0~1032 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zlib_tech.html?a=commitdiff_plain;h=99c524745345b4f36f70cacffdaa3195357cdbdd;p=minix.git arm_sdimage:hide non fatal errors. Redirect the output of the command that are supposed to fail to /dev/null. --- diff --git a/releasetools/arm_sdimage.sh b/releasetools/arm_sdimage.sh index 86a5b9e2a..86eb9a529 100755 --- a/releasetools/arm_sdimage.sh +++ b/releasetools/arm_sdimage.sh @@ -55,12 +55,15 @@ rm -f ${DESTDIR}/SETS.* ${CROSS_TOOLS}/nbpwd_mkdb -V 0 -p -d ${DESTDIR} ${DESTDIR}/etc/master.passwd -umount ${MP_MINIX}/home || true -umount ${MP_MINIX}/usr || true -umount ${MP_MINIX} || true -umount ${MP_BOOT} || true - -losetup -d ${LOOP} || true +# +# The output from the command bellows are redirected to prevent confusion. +# they are supposed to fail unless the previous build was aborted. +# +umount ${MP_MINIX}/home 2>/dev/null || true +umount ${MP_MINIX}/usr 2>/dev/null || true +umount ${MP_MINIX} 2>/dev/null || true +umount ${MP_BOOT} 2>/dev/null || true +losetup -d ${LOOP} 2>/dev/null || true echo "Mounting disk image." losetup ${LOOP} $IMG