From 99c524745345b4f36f70cacffdaa3195357cdbdd Mon Sep 17 00:00:00 2001 From: Kees Jongenburger Date: Wed, 10 Apr 2013 16:58:46 +0200 Subject: [PATCH] arm_sdimage:hide non fatal errors. Redirect the output of the command that are supposed to fail to /dev/null. --- releasetools/arm_sdimage.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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 -- 2.44.0