From bf1c7ff0412df4a93eb6cca05d1f0b001602a236 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Fri, 23 Aug 2024 12:25:27 +0300 Subject: [PATCH] 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. --- CHANGELOG.rst | 2 ++ configs/baseline/profiledef.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 375a92e..6b8c52b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -12,6 +12,8 @@ Changed ------- - 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 ---------- diff --git a/configs/baseline/profiledef.sh b/configs/baseline/profiledef.sh index 618235a..d6fdbfb 100644 --- a/configs/baseline/profiledef.sh +++ b/configs/baseline/profiledef.sh @@ -14,7 +14,7 @@ bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' arch="x86_64" pacman_conf="pacman.conf" 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) file_permissions=( ["/etc/shadow"]="0:0:400"