ZealOS/vboxmnt.sh

14 lines
322 B
Bash
Raw Normal View History

#!/bin/bash
sudo modprobe nbd
sudo qemu-nbd -c dev/nbd0 ~/VirtualBox\ VMs/ZenithOS/ZenithOS.vmdk
sudo mount /dev/nbd0p1 /mnt
2020-02-15 20:31:41 +00:00
rm -rf src/*
sudo cp -r /mnt/* src/
sudo umount /mnt
sudo qemu-nbd -d /dev/nbd0
2020-02-15 20:31:41 +00:00
sudo chown -R v:v src/*
2020-02-21 20:25:33 +00:00
rm Zenith-latest*
mv src/Tmp/MyDistro.ISO.C ./Zenith-latest-$(date +%Y-%m-%d-%H_%M_%S).iso