mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-13 22:28:27 +00:00
Merge lp:~rbalint/livecd-rootfs/vmdkstream-by-module
This commit is contained in:
commit
6e4308be65
6
debian/changelog
vendored
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…
x
Reference in New Issue
Block a user