mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Update sync_vm.sh
This commit is contained in:
parent
b4c40229fa
commit
80fc80fe19
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue