Use VMDKstream in a more future-proof way

ubuntu/artful
Balint Reczey 8 years ago
parent c1bc88e7ce
commit 3b37842219

6
debian/changelog vendored

@ -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 ]

@ -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}

Loading…
Cancel
Save