From 82723311a2a16aa71491262377e30612441b8076 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Thu, 31 May 2012 08:34:13 -0500 Subject: [PATCH] bug fix: on some systems umount removes dir, so make sure directory exist before calling mount Signed-off-by: Robert Nelson --- mk_mmc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mk_mmc.sh b/mk_mmc.sh index 6435574..62ca5d2 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1069,7 +1069,9 @@ function populate_boot { echo "Populating Boot Partition" echo "-----------------------------" - mkdir -p ${TEMPDIR}/disk + if [ ! -d ${TEMPDIR}/disk ] ; then + mkdir -p ${TEMPDIR}/disk + fi if mount -t vfat ${MMC}${PARTITION_PREFIX}1 ${TEMPDIR}/disk; then