From beeac7b9d665f5d4f4953e2df4f7f89dcfc8db8f Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Thu, 11 Jan 2018 12:51:51 +0900 Subject: [PATCH] scripts: tizen: call sync before umount After writing files on mounted directory, umount can fail with busy state. Call sync before umount to clear the busy state instead of sleep. Change-Id: I7985ab3688a64b072c9a992957acdf124f925a34 Signed-off-by: Seung-Woo Kim --- scripts/tizen/sd_fusing_rpi3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tizen/sd_fusing_rpi3.sh b/scripts/tizen/sd_fusing_rpi3.sh index a999641..2f262bf 100755 --- a/scripts/tizen/sd_fusing_rpi3.sh +++ b/scripts/tizen/sd_fusing_rpi3.sh @@ -231,7 +231,7 @@ function mkpart_3 () { mkdir mnt_tmp mount -t ext4 ${DISK}9 ./mnt_tmp touch ./mnt_tmp/reboot-param.bin - sleep 1 + sync umount ./mnt_tmp rmdir mnt_tmp } -- 2.7.4