aboutsummaryrefslogtreecommitdiffstats
path: root/squashfu
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
parent3a32274b9e7f25b464b9df1469091e72a2bf67ee (diff)
downloadsquashfu-d9fa31feda56ce0b8fbf3c59999339566279fc3c.tar.gz
Implemented compression method selection
Diffstat (limited to 'squashfu')
-rwxr-xr-xsquashfu4
1 files changed, 2 insertions, 2 deletions
diff --git a/squashfu b/squashfu
index b923fca..cc91e33 100755
--- a/squashfu
+++ b/squashfu
@@ -29,7 +29,7 @@ create_new_squash () {
# If making first seed, create it directly from source
if [[ $1 -eq -1 ]]; then
info "Creating seed from sources (this may take a while)"
- mksquashfs "${INCLUDES[@]}" "$SEED" -b 65536 -e "${EXCLUDES[@]}" >/dev/null
+ mksquashfs "${INCLUDES[@]}" "$SEED" -b 65536 -e "${EXCLUDES[@]}" -comp "$COMPRESSION_ALGO" ${COMPRESSION_ARGS[@]} > /dev/null
if [[ $? -eq 0 ]]; then
mount_squash
info "Seed creation finished. It has been mounted at "$SQUASH_MOUNT" if you would like to make sure the proper files are included"
@@ -47,7 +47,7 @@ create_new_squash () {
info "Merging old incrementals"
# Create new squash with temp name, exiting on failure
- mksquashfs "$UNION_MOUNT" "$SEED.replace" -b 65536 >/dev/null || return 1
+ mksquashfs "$UNION_MOUNT" "$SEED.replace" -b 65536 -comp "$COMPRESSION_ALGO" ${COMPRESSION_ARGS[@]} > /dev/null || return 1
unmount_all