diff options
author | Daniel Baumann <daniel@debian.org> | 2012-07-18 19:45:14 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-07-18 20:07:08 +0200 |
commit | 27f7d92862403d15f47b1d59b252ebdc073a574f (patch) | |
tree | 64a19c56cca86b59e854d52eb875a8052299a85c /functions/defaults.sh | |
parent | f4de284deb69795a8e4dfa1bf852259ab6b09066 (diff) | |
download | vyos-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/defaults.sh')
-rwxr-xr-x | functions/defaults.sh | 10 |
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 |