mkimage: umount boot only in !beaglebone.

This commit is contained in:
Juan RP 2014-12-05 12:58:19 +01:00
parent f5af7c32bd
commit a3675d092f

View File

@ -184,7 +184,9 @@ elif [ "$PLATFORM" = "odroid-u2" ]; then
dd if=${ROOTFSDIR}/boot/E4412_S.tzsw.signed.bin of=${LOOPDEV} seek=2111 >/dev/null 2>&1 dd if=${ROOTFSDIR}/boot/E4412_S.tzsw.signed.bin of=${LOOPDEV} seek=2111 >/dev/null 2>&1
fi fi
mountpoint -q ${ROOTFSDIR}/boot || umount ${ROOTFSDIR}/boot if [ "$PLATFORM" != "beaglebone" ]; then
umount ${ROOTFSDIR}/boot
fi
umount $ROOTFSDIR umount $ROOTFSDIR
partx -d $LOOPDEV partx -d $LOOPDEV
losetup -d $LOOPDEV losetup -d $LOOPDEV