mkefidisk.sh: Add mount error checking

Provide reasonable feedabck if the mount commands fail.

(From OE-Core rev: 07cf8cfb843311d7f868c502d542af51f64d71bd)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Darren Hart
2014-07-16 14:15:58 +00:00
committed by Richard Purdie
parent 3213ab465c
commit 7f595ea896

View File

@@ -241,7 +241,11 @@ mkdir $ROOTFS_MNT
mkdir $BOOTFS_MNT
mount -o loop $HDDIMG $HDDIMG_MNT
if [ $? -ne 0 ]; then echo "ERROR: Failed to mount $HDDIMG"; fi
mount -o loop $HDDIMG_MNT/rootfs.img $HDDIMG_ROOTFS_MNT
if [ $? -ne 0 ]; then echo "ERROR: Failed to mount rootfs.img"; fi
mount $ROOTFS $ROOTFS_MNT
mount $BOOTFS $BOOTFS_MNT