projects
/
platform
/
upstream
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0cc887a
)
- export ovf and qcow2 files directly for vmx kiwi builds
author
Adrian Schröter
<adrian@suse.de>
Wed, 24 Oct 2012 12:28:03 +0000
(14:28 +0200)
committer
Adrian Schröter
<adrian@suse.de>
Wed, 24 Oct 2012 12:28:03 +0000
(14:28 +0200)
build_kiwi.sh
patch
|
blob
|
history
diff --git
a/build_kiwi.sh
b/build_kiwi.sh
index
377ae24
..
c480da6
100644
(file)
--- a/
build_kiwi.sh
+++ b/
build_kiwi.sh
@@
-187,10
+187,21
@@
EOF
cat > $BUILD_ROOT/kiwi_post.sh << EOF
echo "compressing vmx images... "
cd /$TOPDIR/KIWI-vmx
cat > $BUILD_ROOT/kiwi_post.sh << EOF
echo "compressing vmx images... "
cd /$TOPDIR/KIWI-vmx
+for suffix in "ovf" "qcow2"; do
+ if [ -e "$imageout.\$suffix" ]; then
+ mv "$imageout.\$suffix" "/$TOPDIR/KIWI/$imageout$buildnum.\$suffix"
+ pushd /$TOPDIR/KIWI
+ if [ -x /usr/bin/sha256sum ]; then
+ echo "Create sha256 \$suffix file..."
+ /usr/bin/sha256sum "$imageout$buildnum.\$suffix" > "$imageout$buildnum.\$suffix.sha256"
+ fi
+ popd
+ fi
+done
# This option has a number of format parameters
VMXFILES=""
SHAFILES=""
# This option has a number of format parameters
VMXFILES=""
SHAFILES=""
-for i in "$imageout.vmx" "$imageout.vmdk" "$imageout-disk*.vmdk"
"$imageout.ovf" "$imageout.qcow2"
; do
+for i in "$imageout.vmx" "$imageout.vmdk" "$imageout-disk*.vmdk"; do
test -e \$i && VMXFILES="\$VMXFILES \$i"
done
# take raw files as fallback
test -e \$i && VMXFILES="\$VMXFILES \$i"
done
# take raw files as fallback