Provide reasonable feedabck if the mount commands fail. Signed-off-by: Darren Hart <[email protected]> --- scripts/contrib/mkefidisk.sh | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/scripts/contrib/mkefidisk.sh b/scripts/contrib/mkefidisk.sh index 959307a..0d0674b 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 -- 2.0.0 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
