diff options
author | Darren Hart <dvhart@linux.intel.com> | 2014-07-16 14:15:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-07-19 00:09:00 +0100 |
commit | 7f595ea8966b17c08b0770b3af472238a62f598a (patch) | |
tree | f8175073c33189aa10671d927ae3e624c284ac86 /scripts/contrib | |
parent | 3213ab465c744e98a09c054c77eb560435d44c17 (diff) | |
download | poky-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-x | scripts/contrib/mkefidisk.sh | 4 |
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 | |||
241 | mkdir $BOOTFS_MNT | 241 | mkdir $BOOTFS_MNT |
242 | 242 | ||
243 | mount -o loop $HDDIMG $HDDIMG_MNT | 243 | mount -o loop $HDDIMG $HDDIMG_MNT |
244 | if [ $? -ne 0 ]; then echo "ERROR: Failed to mount $HDDIMG"; fi | ||
245 | |||
244 | mount -o loop $HDDIMG_MNT/rootfs.img $HDDIMG_ROOTFS_MNT | 246 | mount -o loop $HDDIMG_MNT/rootfs.img $HDDIMG_ROOTFS_MNT |
247 | if [ $? -ne 0 ]; then echo "ERROR: Failed to mount rootfs.img"; fi | ||
248 | |||
245 | mount $ROOTFS $ROOTFS_MNT | 249 | mount $ROOTFS $ROOTFS_MNT |
246 | mount $BOOTFS $BOOTFS_MNT | 250 | mount $BOOTFS $BOOTFS_MNT |
247 | 251 | ||