appliance: remove raw.img before export a new one

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2015-03-25 17:25:50 +05:30
parent e3e59c544c
commit 666f752875
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ fi
set -e
# Export for KVM
rm -f raw.img
vboxmanage internalcommands converttoraw -format vdi "$hdd_path" raw.img
set +e
qemu-img convert -o compat=0.10 -f raw -c -O qcow2 raw.img $appliance-$branch-kvm.qcow2