summary refs log tree commit diff
path: root/mkimage.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-12-05 12:58:19 +0100
committerJuan RP <xtraeme@gmail.com>2014-12-05 12:58:19 +0100
commita3675d092fb53a60304ce63cfaf6910df2b13b79 (patch)
treec37dd643875490a36021d7bb83d09d19109da5d7 /mkimage.sh.in
parentf5af7c32bdb27a66864214b6cf983fb91b17f088 (diff)
downloadhrmpf-a3675d092fb53a60304ce63cfaf6910df2b13b79.tar.gz
hrmpf-a3675d092fb53a60304ce63cfaf6910df2b13b79.tar.xz
hrmpf-a3675d092fb53a60304ce63cfaf6910df2b13b79.zip
mkimage: umount boot only in !beaglebone.
Diffstat (limited to 'mkimage.sh.in')
-rw-r--r--mkimage.sh.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index f1b267f..91096e9 100644
--- a/mkimage.sh.in
+++ b/mkimage.sh.in
@@ -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
 fi
 
-mountpoint -q ${ROOTFSDIR}/boot || umount ${ROOTFSDIR}/boot
+if [ "$PLATFORM" != "beaglebone" ]; then
+    umount ${ROOTFSDIR}/boot
+fi
 umount $ROOTFSDIR
 partx -d $LOOPDEV
 losetup -d $LOOPDEV