mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 21:32:13 +02:00
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:
committed by
Richard Purdie
parent
3213ab465c
commit
7f595ea896
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user