mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
Fix build scripts.
This commit is contained in:
parent
6525ef7aa3
commit
4da4e06b0d
3 changed files with 13 additions and 5 deletions
|
@ -45,6 +45,6 @@ sudo sync
|
|||
echo "Deleting temp HDD"
|
||||
rm ./ZealOS.raw
|
||||
echo "Deleting temp mount folder"
|
||||
rm -rf /tmp/zealtmp
|
||||
sudo rm -rf /tmp/zealtmp
|
||||
echo "Done, build/ contents:"
|
||||
ls
|
||||
|
|
|
@ -14,6 +14,7 @@ exit # Comment this line out
|
|||
# sudo qemu-nbd -c dev/nbd0 ZealOS.qcow2
|
||||
|
||||
sudo partprobe /dev/nbd0
|
||||
sudo mkdir /tmp/zealtmp
|
||||
sudo mount /dev/nbd0p1 /tmp/zealtmp
|
||||
echo "removing src/ files"
|
||||
rm -rf ../src/*
|
||||
|
@ -21,12 +22,18 @@ echo "copying src/ files from root of mounted hdd"
|
|||
sudo cp -r /tmp/zealtmp/* ../src/
|
||||
sudo rm ../src/Boot/BootMHD2.BIN.C
|
||||
echo "src/ files copied"
|
||||
|
||||
echo "copying docs/ files from HTML/ folder of mounted .vdi"
|
||||
sudo cp -r /tmp/zealtmp/HTML/* ../docs/
|
||||
echo "docs/ files copied"
|
||||
|
||||
echo "unmounting..."
|
||||
sudo umount /tmp/zealtmp
|
||||
sudo rm -rf /tmp/zealtmp
|
||||
sudo qemu-nbd -d /dev/nbd0
|
||||
echo "unmounted hdd"
|
||||
echo "set perms"
|
||||
sudo chown -R $USER:$USER ../src/*
|
||||
mv ../src/Tmp/AUTO.ISO.C ./AUTO.ISO
|
||||
echo "finished."
|
||||
git status
|
||||
#git status
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
sudo modprobe nbd
|
||||
|
||||
echo "Edit this script first to pick your VM path & file!"
|
||||
exit # Comment this line out
|
||||
#echo "Edit this script first to pick your VM path & file!"
|
||||
#exit # Comment this line out
|
||||
|
||||
# Uncomment ONE of the next lines and edit it to point to your VM HDD
|
||||
# sudo qemu-nbd -c dev/nbd0 ~/VirtualBox\ VMs/ZealOS/ZealOS.vdi
|
||||
|
@ -16,6 +16,7 @@ exit # Comment this line out
|
|||
# sudo qemu-nbd -c dev/nbd0 ZealOS.qcow2
|
||||
|
||||
sudo partprobe /dev/nbd0
|
||||
sudo mkdir /tmp/zealtmp
|
||||
sudo mount /dev/nbd0p1 /tmp/zealtmp
|
||||
echo "Merging with src/"
|
||||
sudo cp -r ../src/* /tmp/zealtmp
|
||||
|
@ -23,7 +24,7 @@ sudo sync
|
|||
echo "Files copied, unmounting"
|
||||
sudo umount /tmp/zealtmp
|
||||
sudo qemu-nbd -d /dev/nbd0
|
||||
sudo rm /tmp/zealtmp/* -r
|
||||
sudo rm -rf /tmp/zealtmp
|
||||
sudo sync
|
||||
echo "finished."
|
||||
git status
|
||||
|
|
Loading…
Reference in a new issue