Change the default dwarfs compressor arguments

Slightly worse compression ratio, but faster file system access.
This commit is contained in:
Kron4ek 2021-11-08 16:18:46 +05:00
parent dc9afd7f5b
commit d05109732b
2 changed files with 5 additions and 3 deletions

View file

@ -43,7 +43,7 @@ mount_point="${working_dir}"/mnt
# a problem with mounting the image due to an incorrectly calculated offset. # a problem with mounting the image due to an incorrectly calculated offset.
# The size of this script # The size of this script
scriptsize=24914 scriptsize=25024
# The size of the utils archive # The size of the utils archive
utilssize=2928770 utilssize=2928770
@ -63,7 +63,8 @@ dwarfs_num_workers="2"
# These arguments are used to rebuild the image when using the self-update function # These arguments are used to rebuild the image when using the self-update function
squashfs_comp_arguments="-b 256K -comp zstd -Xcompression-level 14" squashfs_comp_arguments="-b 256K -comp zstd -Xcompression-level 14"
dwarfs_comp_arguments="-l7 -C zstd:level=19 --metadata-compression null \ dwarfs_comp_arguments="-l7 -C zstd:level=19 --metadata-compression null \
-S 22 -B 3" -S 22 -B 2 --order nilsimsa:255:40000:40000 \
--bloom-filter-size 11 -W 15 -w 3"
if [ "$1" = "--help" ] || [ "$1" = "-h" ] || ([ -z "$1" ] && [ ! -L "${script_literal}" ]); then if [ "$1" = "--help" ] || [ "$1" = "-h" ] || ([ -z "$1" ] && [ ! -L "${script_literal}" ]); then
echo "Usage: ./conty.sh command command_arguments" echo "Usage: ./conty.sh command command_arguments"

View file

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