You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2013/02/28 12:26:00 UTC

git commit: refs/heads/master - CLOUDSTACK-1340: Fix destination path issue, vbox's internalcommands issue

Updated Branches:
  refs/heads/master 2081aa310 -> 44f345e4c


CLOUDSTACK-1340: Fix destination path issue, vbox's internalcommands issue

Signed-off-by: Rohit Yadav <bh...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/44f345e4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/44f345e4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/44f345e4

Branch: refs/heads/master
Commit: 44f345e4c67a2c87c9b4c97fb800a6beefb3bf50
Parents: 2081aa3
Author: Rohit Yadav <bh...@apache.org>
Authored: Thu Feb 28 16:54:45 2013 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Thu Feb 28 16:55:41 2013 +0530

----------------------------------------------------------------------
 tools/appliance/build.sh |   21 +++++++++++----------
 1 files changed, 11 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/44f345e4/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index 60b43bd..039369b 100644
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -49,26 +49,27 @@ vboxmanage modifyhd $hdd_uuid --compact
 # Start exporting
 rm -fr dist
 mkdir dist
+cd dist
 
 # Export for Xen
-vboxmanage internalcommands converttoraw $hdd_path dist/raw.img
-vhd-util convert -s 0 -t 1 -i dist/raw.img  -o dist/$appliance-$build_date-$branch-xen.vhd
-bzip2 dist/$appliance-$build_date-$branch-xen.vhd
+vboxmanage internalcommands converttoraw "$hdd_path" raw.img
+vhd-util convert -s 0 -t 1 -i raw.img -o $appliance-$build_date-$branch-xen.vhd
+bzip2 $appliance-$build_date-$branch-xen.vhd
 echo "$appliance exported for Xen: dist/$appliance-$build_date-$branch-xen.vhd.bz2"
 
 # Export for KVM
-vboxmanage internalcommands converttoraw $hdd_path dist/raw.img
-qemu-img convert -f raw -O qcow2 dist/raw.img dist/$appliance-$build_date-$branch-kvm.qcow2
-rm dist/raw.img
-bzip2 dist/$appliance-$build_date-$branch-kvm.qcow2
+vboxmanage internalcommands converttoraw "$hdd_path" raw.img
+qemu-img convert -f raw -O qcow2 raw.img $appliance-$build_date-$branch-kvm.qcow2
+rm raw.img
+bzip2 $appliance-$build_date-$branch-kvm.qcow2
 echo "$appliance exported for KVM: dist/$appliance-$build_date-$branch-kvm.qcow2.bz2"
 
 # Export for VMWare vSphere
-vboxmanage export $machine_uuid --output dist/$appliance-$build_date-$branch-vmware.ova
+vboxmanage export $machine_uuid --output $appliance-$build_date-$branch-vmware.ova
 echo "$appliance exported for VMWare: dist/$appliance-$build_date-$branch-vmware.ova"
 
 # Export for HyperV
-vboxmanage clonehd $hdd_uuid dist/$appliance-$build_date-$branch-hyperv.vhd --format VHD
-bzip2 dist/$appliance-$build_date-$branch-hyperv.vhd
+vboxmanage clonehd $hdd_uuid $appliance-$build_date-$branch-hyperv.vhd --format VHD
+bzip2 $appliance-$build_date-$branch-hyperv.vhd
 echo "$appliance exported for HyperV: dist/$appliance-$build_date-$branch-hyperv.vhd.bz2"