configs/baseline/profiledef.sh: do not use mkfs.erofs extended options "fragments" and "dedupe"

These options are not compatible with multi-threaded compression and
actually increase the image file size.

With this change, the baseline profile's EROFS image file size is
reduced from 488 MiB to 398 MiB.
On my system, the compression time is reduced from about 2m6.274s to
1m59.410s when using erofs-utils built without multi-threaded
compression and to 0m27.883s when using erofs-utils built with
multi-threaded compression.
This commit is contained in:
nl6720 2024-08-23 12:25:27 +03:00
parent 6cd79e6505
commit bf1c7ff041
No known key found for this signature in database
GPG key ID: 6B5387E670A955AD
2 changed files with 3 additions and 1 deletions

View file

@ -12,6 +12,8 @@ Changed
------- -------
- Use an empty UUID for the EROFS image file since the file system will never be referenced by it. - Use an empty UUID for the EROFS image file since the file system will never be referenced by it.
- Do not use ``mkfs.erofs`` extended options ``fragments`` and ``dedupe`` in the baseline profile. This reduces the EROFS
image size and compression time.
Deprecated Deprecated
---------- ----------

View file

@ -14,7 +14,7 @@ bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito'
arch="x86_64" arch="x86_64"
pacman_conf="pacman.conf" pacman_conf="pacman.conf"
airootfs_image_type="erofs" airootfs_image_type="erofs"
airootfs_image_tool_options=('-zlzma,109' -E 'ztailpacking,fragments,dedupe') airootfs_image_tool_options=('-zlzma,109' -E 'ztailpacking')
bootstrap_tarball_compression=(zstd -c -T0 --long -19) bootstrap_tarball_compression=(zstd -c -T0 --long -19)
file_permissions=( file_permissions=(
["/etc/shadow"]="0:0:400" ["/etc/shadow"]="0:0:400"