about summary refs log tree commit diff
path: root/mkimage.sh.in
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2015-02-22 09:39:47 +0100
committerJuan RP <xtraeme@gmail.com>2015-02-22 09:39:47 +0100
commit3d30dbb7a66ccd894c286948e1c1214dfc0f0e40 (patch)
tree946c212ae315d685a32253fbca2e79c9b135ce75 /mkimage.sh.in
parent69bcb88aa1d5771a463b524f7f6385ad3575a7dc (diff)
downloadhrmpf-3d30dbb7a66ccd894c286948e1c1214dfc0f0e40.tar.gz
hrmpf-3d30dbb7a66ccd894c286948e1c1214dfc0f0e40.tar.xz
hrmpf-3d30dbb7a66ccd894c286948e1c1214dfc0f0e40.zip
mkimage: misc cosmetic tweaks; umount rootfs/boot only if it's mounted.
Diffstat (limited to 'mkimage.sh.in')
-rw-r--r--mkimage.sh.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/mkimage.sh.in b/mkimage.sh.in
index 38ad5c2..96199fa 100644
--- a/mkimage.sh.in
+++ b/mkimage.sh.in
@@ -41,7 +41,7 @@ cleanup() {
 }
 
 info_msg() {
-    printf "\033[1m$@\n\033[m"
+    printf "\033[1m[${PLATFORM}] $@\n\033[m"
 }
 
 die() {
@@ -184,12 +184,12 @@ elif [ "$PLATFORM" = "odroid-u2" ]; then
     dd if=${ROOTFSDIR}/boot/E4412_S.tzsw.signed.bin of=${LOOPDEV} seek=2111 >/dev/null 2>&1
 fi
 
-umount ${ROOTFSDIR}/boot || :
+mountpoint -q ${ROOTFSDIR}/boot && umount ${ROOTFSDIR}/boot
 umount $ROOTFSDIR
 losetup -d $LOOPDEV
 rmdir $ROOTFSDIR
 
 chmod 644 $FILENAME
-info_msg "Successfully created $FILENAME ($PLATFORM) image."
+info_msg "Successfully created $FILENAME image."
 
 # vim: set ts=4 sw=4 et: