Skip to content

Commit dcd9609

Browse files
authored
fix: add sync before unmount to prevent issues with busy mount (#39)
Signed-off-by: Stefan Dej <[email protected]>
1 parent 29b1d1a commit dcd9609

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ function unmount_image() {
146146
force=$2
147147
fi
148148

149+
echo "Syncing $mount_path..."
150+
sync
151+
sleep 1
152+
149153
if [ -n "$force" ]
150154
then
151155
for process in $(sudo lsof $mount_path | awk '{print $2}')

0 commit comments

Comments
 (0)