Use VMDKstream in a more future-proof way

This commit is contained in:
Balint Reczey 2017-07-24 20:46:51 +02:00
parent c1bc88e7ce
commit 3b37842219
2 changed files with 8 additions and 2 deletions

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
livecd-rootfs (2.449) UNRELEASED; urgency=medium
* Use VMDKstream in a more future-proof way
-- Balint Reczey <rbalint@ubuntu.com> Mon, 24 Jul 2017 20:39:35 +0200
livecd-rootfs (2.448) artful; urgency=medium
[ Balint Reczey ]

View File

@ -226,12 +226,12 @@ create_vmdk() {
destination="$2"
size="${3:-10240}"
streamconverter="/usr/lib/python2.7/dist-packages/VMDKstream.py"
streamconverter="VMDKstream"
scratch_d=$(mktemp -d)
cp ${src} ${scratch_d}/resize.img
truncate --size=${size}M ${scratch_d}/resize.img
python ${streamconverter} ${scratch_d}/resize.img ${destination}
python -m ${streamconverter} ${scratch_d}/resize.img ${destination}
modify_vmdk_header ${destination}
qemu-img info ${destination}