From 521ef2069fd76d85159b9faa6e76dbc04766c767 Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Thu, 24 Nov 2022 13:01:34 +0500 Subject: [PATCH] Update dwarfs compression arguments --- conty-start.sh | 8 ++++---- create-conty.sh | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/conty-start.sh b/conty-start.sh index d4ba574..cf4618e 100755 --- a/conty-start.sh +++ b/conty-start.sh @@ -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 diff --git a/create-conty.sh b/create-conty.sh index e76d869..38a611e 100755 --- a/create-conty.sh +++ b/create-conty.sh @@ -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