aboutsummaryrefslogtreecommitdiffstats
path: root/squashfu.conf
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2025-09-07 17:11:13 +0000
committerLeonard Kugis <leonard@kug.is>2025-09-07 17:11:13 +0000
commitd9fa31feda56ce0b8fbf3c59999339566279fc3c (patch)
treefac7075876cd78d605b1e61cd8496aa01b5545b4 /squashfu.conf
parent3a32274b9e7f25b464b9df1469091e72a2bf67ee (diff)
downloadsquashfu-d9fa31feda56ce0b8fbf3c59999339566279fc3c.tar.gz
Implemented compression method selection
Diffstat (limited to 'squashfu.conf')
-rw-r--r--squashfu.conf10
1 files changed, 10 insertions, 0 deletions
diff --git a/squashfu.conf b/squashfu.conf
index 67012a9..f15b83d 100644
--- a/squashfu.conf
+++ b/squashfu.conf
@@ -55,6 +55,16 @@ DEL_BIN_ON_FAIL=(1)
# not be true incrementals. See 'man rsync' for more info.
RSYNC_OPTS=("-Rua" "--delete" "--stats")
+# Select compression algorithm.
+# Available options: gzip, lzo, lz4, xz, zstd, lzma
+# For details, see mksquashfs manpage.
+COMPRESSION_ALGO="zstd"
+
+# Add options for compression algorithm.
+# For zstd, only compression level is configurable.
+# For other compression algorithms, see mksquashfs manpage.
+COMPRESSION_ARGS=("-Xcompression-level" 15)
+
# The following defines what will and won't be backed up. These are
# simply Bash arrays and are interpreted as such.