From 0b20544857c85180791c4770e3fef5146bce804e Mon Sep 17 00:00:00 2001 From: Ian Mancini Date: Sat, 3 Apr 2021 04:07:29 -0300 Subject: [PATCH] Make qemu-mount sync writes --- qemu-mount | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qemu-mount b/qemu-mount index ddb26be..fb13b95 100755 --- a/qemu-mount +++ b/qemu-mount @@ -25,6 +25,8 @@ sudo qemu-nbd --connect=$device $image close() { echo "" if [ $mounted = "true" ]; then + echo ":: Syncing cached writes" + sync echo ":: Umounting $selection " sudo umount $selection fi