diff --git a/build/sync_vm.sh b/build/sync_vm.sh index a9d524d5..39b4b11a 100755 --- a/build/sync_vm.sh +++ b/build/sync_vm.sh @@ -16,14 +16,14 @@ exit # Comment this line out # sudo qemu-nbd -c dev/nbd0 ZealOS.qcow2 sudo partprobe /dev/nbd0 -sudo mount /dev/nbd0p1 /mnt +sudo mount /dev/nbd0p1 /tmp/zealtmp echo "Merging with src/" -sudo cp -r ../src/* /mnt/ +sudo cp -r ../src/* /tmp/zealtmp sudo sync echo "Files copied, unmounting" -sudo umount /mnt +sudo umount /tmp/zealtmp sudo qemu-nbd -d /dev/nbd0 -sudo rm /mnt/* -r +sudo rm /tmp/zealtmp/* -r sudo sync echo "finished." git status