summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-18 19:45:14 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-18 20:07:08 +0200
commit27f7d92862403d15f47b1d59b252ebdc073a574f (patch)
tree64a19c56cca86b59e854d52eb875a8052299a85c /functions
parentf4de284deb69795a8e4dfa1bf852259ab6b09066 (diff)
downloadvyos-live-build-27f7d92862403d15f47b1d59b252ebdc073a574f.tar.gz
vyos-live-build-27f7d92862403d15f47b1d59b252ebdc073a574f.zip
Using xz to compress images on anything except squeeze, keeping gzip as default for squeeze.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 33621da77..eaaf822de 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -941,7 +941,15 @@ Set_defaults ()
;;
*)
- LB_COMPRESSION="${LB_COMPRESSION:-gzip}"
+ case "${LB_DISTRIBUTION}" in
+ squeeze)
+ LB_COMPRESSION="${LB_COMPRESSION:-gzip}"
+ ;;
+
+ *)
+ LB_COMPRESSION="${LB_COMPRESSION:-xz}"
+ ;;
+ esac
;;
esac