forked from sneak/hacks
scripts to build a ubuntu qcow2 root image for kvm
This commit is contained in:
13
build.ubuntu.vmimg/cleanup.sh
Executable file
13
build.ubuntu.vmimg/cleanup.sh
Executable 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
|
||||
Reference in New Issue
Block a user