Repository: cloudstack Updated Branches: refs/heads/master caba04d17 -> 8fe3c0b8b
appliance: remove raw.img before exporting and building template for KVM Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/8fe3c0b8 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/8fe3c0b8 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/8fe3c0b8 Branch: refs/heads/master Commit: 8fe3c0b8bae2eb477bdddcebf72af8a08acadb24 Parents: caba04d Author: Rohit Yadav <[email protected]> Authored: Wed Mar 25 17:27:03 2015 +0530 Committer: Rohit Yadav <[email protected]> Committed: Wed Mar 25 17:27:03 2015 +0530 ---------------------------------------------------------------------- tools/appliance/build.sh | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/8fe3c0b8/tools/appliance/build.sh ---------------------------------------------------------------------- diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh index 06a7bd6..fe0f4e1 100755 --- a/tools/appliance/build.sh +++ b/tools/appliance/build.sh @@ -426,6 +426,7 @@ function kvm_export() { if [ ${result} == 0 ]; then log INFO "creating kvm export" local hdd_path="${1}" + 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_build_name}-kvm.qcow2"
