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() {
echo ""
if [ $mounted = "true" ]; then
echo ":: Syncing cached writes"
sync
echo ":: Umounting $selection "
sudo umount $selection
fi

Loading…
Cancel
Save