From d9fa31feda56ce0b8fbf3c59999339566279fc3c Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Sun, 7 Sep 2025 17:11:13 +0000 Subject: Implemented compression method selection --- squashfu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'squashfu') 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 -- cgit v1.2.3