ZealOS/vboxmnt.sh
2020-02-15 14:31:41 -06:00

11 lines
231 B
Bash
Executable file

#!/bin/bash
sudo modprobe nbd
sudo qemu-nbd -c dev/nbd0 ~/VirtualBox\ VMs/ZenithOS/ZenithOS.qcow
sudo mount /dev/nbd0p1 /mnt
rm -rf src/*
sudo cp -r /mnt/* src/
sudo umount /mnt
sudo qemu-nbd -d /dev/nbd0
sudo chown -R v:v src/*