summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2011-03-25 15:57:44 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-25 15:57:44 +0100
commit87f788b31df0b6f143c8ac729a3518d1b7f5d19c (patch)
tree82357f09285f1ae04e43122a889238e1cb7a69e4
parentee8d5892506214c447a577953a3fc9309b5760ba (diff)
downloadvyos-live-build-87f788b31df0b6f143c8ac729a3518d1b7f5d19c.tar.gz
vyos-live-build-87f788b31df0b6f143c8ac729a3518d1b7f5d19c.zip
Enabling xz compression for squashfs by default.
-rwxr-xr-xscripts/build/lb_binary_rootfs13
1 files changed, 13 insertions, 0 deletions
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"