From 4f2c623e27511351e8e839209da77ee587528d1d Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Fri, 28 Apr 2017 17:50:02 -0700 Subject: [PATCH] Use xz to compress ubuntu-image .img files before transfer, so that we have smaller downloads and retain file sparseness everywhere. --- debian/changelog | 2 ++ live-build/auto/build | 3 +++ 2 files changed, 5 insertions(+) diff --git a/debian/changelog b/debian/changelog index 185a52b8..6e84c34b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,8 @@ livecd-rootfs (2.443) UNRELEASED; urgency=medium * Mark autopkgtests isolation-machine since debootstrap won't work in a container. + * Use xz to compress ubuntu-image .img files before transfer, so that we + have smaller downloads and retain file sparseness everywhere. -- Steve Langasek Fri, 28 Apr 2017 17:41:05 -0700 diff --git a/live-build/auto/build b/live-build/auto/build index cfe00bdd..90b0f6f3 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -17,7 +17,10 @@ fi if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then # 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 + pxz -T4 livecd."$PROJECT".img exit 0 fi