diff options
author | Leonard Kugis <leonard@kug.is> | 2025-09-07 17:11:13 +0000 |
---|---|---|
committer | Leonard Kugis <leonard@kug.is> | 2025-09-07 17:11:13 +0000 |
commit | d9fa31feda56ce0b8fbf3c59999339566279fc3c (patch) | |
tree | fac7075876cd78d605b1e61cd8496aa01b5545b4 /squashfu | |
parent | 3a32274b9e7f25b464b9df1469091e72a2bf67ee (diff) | |
download | squashfu-d9fa31feda56ce0b8fbf3c59999339566279fc3c.tar.gz |
Implemented compression method selection
Diffstat (limited to 'squashfu')
-rwxr-xr-x | squashfu | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |