summaryrefslogtreecommitdiffstats
path: root/scripts/contrib
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:09:00 +0100
commit7f595ea8966b17c08b0770b3af472238a62f598a (patch)
treef8175073c33189aa10671d927ae3e624c284ac86 /scripts/contrib
parent3213ab465c744e98a09c054c77eb560435d44c17 (diff)
downloadpoky-7f595ea8966b17c08b0770b3af472238a62f598a.tar.gz
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>
Diffstat (limited to 'scripts/contrib')
-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
241mkdir $BOOTFS_MNT 241mkdir $BOOTFS_MNT
242 242
243mount -o loop $HDDIMG $HDDIMG_MNT 243mount -o loop $HDDIMG $HDDIMG_MNT
244if [ $? -ne 0 ]; then echo "ERROR: Failed to mount $HDDIMG"; fi
245
244mount -o loop $HDDIMG_MNT/rootfs.img $HDDIMG_ROOTFS_MNT 246mount -o loop $HDDIMG_MNT/rootfs.img $HDDIMG_ROOTFS_MNT
247if [ $? -ne 0 ]; then echo "ERROR: Failed to mount rootfs.img"; fi
248
245mount $ROOTFS $ROOTFS_MNT 249mount $ROOTFS $ROOTFS_MNT
246mount $BOOTFS $BOOTFS_MNT 250mount $BOOTFS $BOOTFS_MNT
247 251