Use xz to compress ubuntu-image .img files before transfer, so that we

have smaller downloads and retain file sparseness everywhere.
ubuntu/artful
Steve Langasek 8 years ago
parent c9b65e13bd
commit 4f2c623e27

2
debian/changelog vendored

@ -2,6 +2,8 @@ livecd-rootfs (2.443) UNRELEASED; urgency=medium
* Mark autopkgtests isolation-machine since debootstrap won't work in a * Mark autopkgtests isolation-machine since debootstrap won't work in a
container. container.
* Use xz to compress ubuntu-image .img files before transfer, so that we
have smaller downloads and retain file sparseness everywhere.
-- Steve Langasek <steve.langasek@ubuntu.com> Fri, 28 Apr 2017 17:41:05 -0700 -- Steve Langasek <steve.langasek@ubuntu.com> Fri, 28 Apr 2017 17:41:05 -0700

@ -17,7 +17,10 @@ fi
if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
# Use ubuntu-image instead of live-build # Use ubuntu-image instead of live-build
apt-get install -qqy pxz
env SNAPPY_STORE_NO_CDN=1 ubuntu-image -o livecd."$PROJECT".img livecd."$PROJECT".model-assertion env SNAPPY_STORE_NO_CDN=1 ubuntu-image -o livecd."$PROJECT".img livecd."$PROJECT".model-assertion
pxz -T4 livecd."$PROJECT".img
exit 0 exit 0
fi fi

Loading…
Cancel
Save