summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDarren Hart <dvhart@linux.intel.com>2014-07-16 14:15:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-19 00:08:48 +0100
commit07cf8cfb843311d7f868c502d542af51f64d71bd (patch)
tree70fed4cd78a217b7a383b599129fe66498f0c709 /scripts
parentd80d730a5fa84d3a036d1fc8290620e90d5db460 (diff)
downloadopenembedded-core-07cf8cfb843311d7f868c502d542af51f64d71bd.tar.gz
openembedded-core-07cf8cfb843311d7f868c502d542af51f64d71bd.tar.bz2
openembedded-core-07cf8cfb843311d7f868c502d542af51f64d71bd.zip
mkefidisk.sh: Add mount error checking
Provide reasonable feedabck if the mount commands fail. Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/contrib/mkefidisk.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh
index 959307ae42..0d0674b4c2 100755
--- a/scripts/contrib/mkefidisk.sh
+++ b/scripts/contrib/mkefidisk.sh
@@ -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