summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2018-05-10 16:14:43 +0200
committer Eric Hameleers <alien@slackware.com>2018-05-10 16:14:43 +0200
commit08da7380396347e5fb0e83c4e2eb8c9c0b0b1b17 (patch)
tree32f6a4967d12ebecbb63f1a0412d24bdfffde1ec
parent4c20304d3480f1c05259e9ff496af125607be2d0 (diff)
downloadliveslak-08da7380396347e5fb0e83c4e2eb8c9c0b0b1b17.tar.gz
liveslak-08da7380396347e5fb0e83c4e2eb8c9c0b0b1b17.tar.xz
XFCE: try to increase compression rate a bit
-rwxr-xr-xmake_slackware_live.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index fd185c2..d38e21a 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -231,6 +231,15 @@ COMPR=${COMPR:-"xz --check=crc32"}
# Default is xz, alternatives are gzip, lzma, lzo:
SXZ_COMP=${SXZ_COMP:-"xz"}
+# What compression parameters to use?
+# For our lean XFCE image we try to achieve max compression,
+# at the expense of runtime latency:
+if [ "$LIVEDE" = "XFCE" ] ; then
+ SXZ_COMP_PARAMS=${SXZ_COMP_PARAMS:-"-b 1M"}
+else
+ SXZ_COMP_PARAMS=${SXZ_COMP_PARAMS:-"-b 512k -Xdict-size 100%"}
+fi
+
# Mount point where Live filesystem is assembled (no storage requirements):
LIVE_ROOTDIR=${LIVE_ROOTDIR:-"/mnt/slackwarelive"}