cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mc...@apache.org
Subject [29/50] [abbrv] git commit: refs/heads/vim51_win8 - CLOUDSTACK-1340: Do two rounds of vhd export, from raw to fixed to dynamic
Date Sat, 02 Mar 2013 01:01:27 GMT
CLOUDSTACK-1340: Do two rounds of vhd export, from raw to fixed to dynamic

Signed-off-by: Rohit Yadav <bhaisaab@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/512c16f4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/512c16f4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/512c16f4

Branch: refs/heads/vim51_win8
Commit: 512c16f48357c179a19e73bec57a7c914762bc47
Parents: f9d96c9
Author: Rohit Yadav <bhaisaab@apache.org>
Authored: Fri Mar 1 15:56:06 2013 +0530
Committer: Rohit Yadav <bhaisaab@apache.org>
Committed: Fri Mar 1 16:59:02 2013 +0530

----------------------------------------------------------------------
 tools/appliance/build.sh |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/512c16f4/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index eeee54b..2b69f14 100644
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -60,8 +60,10 @@ rm -fr dist *.ova *.vhd *.vdi *.qcow* *.bz2
 mkdir dist
 
 # Export for Xen
-vboxmanage internalcommands converttoraw "$hdd_path" raw.img
-vhd-util convert -s 0 -t 1 -i raw.img -o $appliance-$build_date-$branch-xen.vhd
+vboxmanage internalcommands converttoraw "$hdd_path" img.raw
+faketime '2010-01-01' vhd-util convert -s 0 -t 1 -i img.raw -o stagefixed.vhd
+faketime '2010-01-01' vhd-util convert -s 1 -t 2 -i stagefixed.vhd -o $appliance-$build_date-$branch-xen.vhd
+rm *.bak
 bzip2 $appliance-$build_date-$branch-xen.vhd
 echo "$appliance exported for Xen: dist/$appliance-$build_date-$branch-xen.vhd.bz2"
 


Mime
View raw message