appliance: remove any stale raw.img file

This fixes a common build issue

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2015-03-25 17:24:55 +05:30
parent 33744ed658
commit 244c361b50
1 changed files with 2 additions and 1 deletions

View File

@ -89,9 +89,10 @@ fi
set -e
# Export for KVM
rm -f raw.img
vboxmanage internalcommands converttoraw -format vdi "$hdd_path" raw.img
qemu-img convert -o compat=0.10 -f raw -c -O qcow2 raw.img $appliance-$branch-$build_date-kvm.qcow2
rm raw.img
rm -f raw.img
bzip2 $appliance-$branch-$build_date-kvm.qcow2
echo "$appliance exported for KVM: dist/$appliance-$branch-$build_date-kvm.qcow2.bz2"