Make qemu-mount sync writes

main
Ian Mancini 4 years ago
parent b0ca15f086
commit 0b20544857

@ -25,6 +25,8 @@ sudo qemu-nbd --connect=$device $image
close() { close() {
echo "" echo ""
if [ $mounted = "true" ]; then if [ $mounted = "true" ]; then
echo ":: Syncing cached writes"
sync
echo ":: Umounting $selection " echo ":: Umounting $selection "
sudo umount $selection sudo umount $selection
fi fi

Loading…
Cancel
Save