mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 04:19:27 +01:00
compiler_vm: add script to mount/umount qcow2 for editing
This commit is contained in:
parent
4602c3b732
commit
f16dedf680
@ -13,7 +13,7 @@ use warnings;
|
||||
# These are set automatically by the build/commit script
|
||||
use constant {
|
||||
BUILD_NAME => "PBot",
|
||||
BUILD_REVISION => 388,
|
||||
BUILD_REVISION => 389,
|
||||
BUILD_DATE => "2012-10-24",
|
||||
};
|
||||
|
||||
|
4
modules/compiler_vm/mount_edit
Executable file
4
modules/compiler_vm/mount_edit
Executable 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
|
3
modules/compiler_vm/umount_edit
Executable file
3
modules/compiler_vm/umount_edit
Executable file
@ -0,0 +1,3 @@
|
||||
umount edit
|
||||
qemu-nbd -d /dev/nbd0
|
||||
killall qemu-nbd
|
Loading…
Reference in New Issue
Block a user