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 <sw0312.kim@samsung.com>
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
}
mkdir mnt_tmp
mount -t vfat $device ./mnt_tmp
cp -f $fusing_img ./mnt_tmp
+ sync
umount ./mnt_tmp
rmdir mnt_tmp
echo "fusing $fusing_img is done."