3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

compiler_vm: add script to mount/umount qcow2 for editing

This commit is contained in:
Pragmatic Software 2012-10-24 12:29:00 +00:00
parent 4602c3b732
commit f16dedf680
3 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,7 @@ use warnings;
# These are set automatically by the build/commit script # These are set automatically by the build/commit script
use constant { use constant {
BUILD_NAME => "PBot", BUILD_NAME => "PBot",
BUILD_REVISION => 388, BUILD_REVISION => 389,
BUILD_DATE => "2012-10-24", BUILD_DATE => "2012-10-24",
}; };

4
modules/compiler_vm/mount_edit Executable file
View File

@ -0,0 +1,4 @@
modprobe nbd max_part=16
qemu-nbd -c /dev/nbd0 compiler-savedvm-edit.qcow2
partprobe /dev/nbd0
mount /dev/nbd0p1 edit

View File

@ -0,0 +1,3 @@
umount edit
qemu-nbd -d /dev/nbd0
killall qemu-nbd