Skip to content

Commit b084515

Browse files
committed
Merge branch 'hotfix/4.5-7959' into 4.5
2 parents ad59970 + 3f8d0dd commit b084515

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/appliance/build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,14 @@ set -e
9090

9191
# Export for KVM
9292
vboxmanage internalcommands converttoraw -format vdi "$hdd_path" raw.img
93+
set +e
9394
qemu-img convert -o compat=0.10 -f raw -c -O qcow2 raw.img $appliance-$branch-kvm.qcow2
95+
qemuresult=$?
96+
set -e
97+
if [ ${qemuresult} != 0 ]; then
98+
log INFO "'qemu-img convert' failed, trying without compat option"
99+
qemu-img convert -f raw -c -O qcow2 raw.img $appliance-$branch-kvm.qcow2
100+
fi
94101
rm raw.img
95102
bzip2 $appliance-$branch-kvm.qcow2
96103
echo "$appliance exported for KVM: dist/$appliance-$branch-kvm.qcow2.bz2"

0 commit comments

Comments
 (0)