Update dwarfs compression arguments

This commit is contained in:
Kron4ek 2022-11-24 13:01:34 +05:00
parent f38454d4ac
commit 521ef2069f
2 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@ if [ $EUID = 0 ] && [ -z "$ALLOW_ROOT" ]; then
exit 1
fi
script_version="1.21.2"
script_version="1.21.3"
# Full path to the script
script_literal="${BASH_SOURCE[0]}"
@ -43,7 +43,7 @@ mount_point="${working_dir}"/mnt
# a problem with mounting the image due to an incorrectly calculated offset.
# The size of this script
scriptsize=26238
scriptsize=26260
# The size of the utils archive
utilssize=2482019
@ -62,8 +62,8 @@ dwarfs_num_workers="2"
# These arguments are used to rebuild the image when using the self-update function
squashfs_comp_arguments="-b 1M -comp zstd -Xcompression-level 19"
dwarfs_comp_arguments="-l7 -C zstd:level=19 --metadata-compression null \
-S 22 -B 2 --order nilsimsa:255:40000:40000 \
--bloom-filter-size 11 -W 15 -w 3"
-S 22 -B 2 --order nilsimsa:255:60000:60000 \
--bloom-filter-size 11 -W 15 -w 3 --no-create-timestamp"
unset script_is_symlink
if [ -L "${script_literal}" ]; then

View file

@ -17,8 +17,8 @@ squashfs_compressor_arguments="-b 256K -comp ${squashfs_compressor} -Xhc"
# Use dwarfs instead of squashfs
dwarfs="false"
dwarfs_compressor_arguments="-l7 -C zstd:level=19 --metadata-compression null \
-S 22 -B 2 --order nilsimsa:255:40000:40000 \
--bloom-filter-size 11 -W 15 -w 3"
-S 22 -B 2 --order nilsimsa:255:60000:60000 \
--bloom-filter-size 11 -W 15 -w 3 --no-create-timestamp"
# Set to true to use an existing image if it exists
# Otherwise the script will always create a new image