Update sync_vm.sh

This commit is contained in:
Ccode-lang 2021-11-29 19:56:25 -07:00 committed by GitHub
parent b4c40229fa
commit 80fc80fe19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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