1
0
forked from sneak/hacks

scripts to build a ubuntu qcow2 root image for kvm

This commit is contained in:
Jeffrey Paul
2014-01-28 00:58:04 +01:00
parent 937ac1d09f
commit 3c9e5fe87c
4 changed files with 310 additions and 0 deletions

13
build.ubuntu.vmimg/cleanup.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
MR="./mr"
L="/dev/loop5"
losetup -d /dev/loop6
umount $MR/sys
umount $MR/proc
umount $MR/dev
umount $MR/boot
umount $MR
vgchange -a n vmvg0
kpartx -dv $L
losetup -d $L
rm -rf mr raw.img