mirror of
https://github.com/Kron4ek/Conty
synced 2024-12-27 09:58:25 +01:00
Change the default dwarfs compressor arguments
Slightly worse compression ratio, but faster file system access.
This commit is contained in:
parent
dc9afd7f5b
commit
d05109732b
2 changed files with 5 additions and 3 deletions
|
@ -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"
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue