From 3b37842219f32421c2ce079dfd63c113e3396cc1 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Mon, 24 Jul 2017 20:46:51 +0200 Subject: [PATCH] Use VMDKstream in a more future-proof way --- debian/changelog | 6 ++++++ live-build/functions | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4db6be9a..59e4e416 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +livecd-rootfs (2.449) UNRELEASED; urgency=medium + + * Use VMDKstream in a more future-proof way + + -- Balint Reczey Mon, 24 Jul 2017 20:39:35 +0200 + livecd-rootfs (2.448) artful; urgency=medium [ Balint Reczey ] diff --git a/live-build/functions b/live-build/functions index 028352ac..fee44f67 100644 --- a/live-build/functions +++ b/live-build/functions @@ -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}