From 87f788b31df0b6f143c8ac729a3518d1b7f5d19c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 25 Mar 2011 15:57:44 +0100 Subject: [PATCH] Enabling xz compression for squashfs by default. --- scripts/build/lb_binary_rootfs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/build/lb_binary_rootfs b/scripts/build/lb_binary_rootfs index 730535af7..6635bed7e 100755 --- a/scripts/build/lb_binary_rootfs +++ b/scripts/build/lb_binary_rootfs @@ -299,6 +299,19 @@ case "${LB_CHROOT_FILESYSTEM}" in MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -no-progress" + case "${LB_DISTRIBUTION}" in + artax|squeeze) + if [ "${LB_BACKPORTS}" = "true" ] + then + MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -comp xz" + fi + ;; + + *) + MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -comp xz" + ;; + esac + if [ "${_VERBOSE}" = "true" ] then MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -info"