From: Michael Prokop Date: Fri, 22 Jan 2021 09:59:28 +0000 (+0100) Subject: initramfs-tools: use upstream's xz handling to support multithreading X-Git-Tag: v0.37.2~2 X-Git-Url: https://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=87bef6e7e402f1faadb7f534c7a113d394425a75;hp=eef40764c7ab2dbf8b2366f1dfb01b919be23091 initramfs-tools: use upstream's xz handling to support multithreading initramfs-tools versions >=0.136 support multithreading in xz compression usage (see upstream commit 41d9ceb3). While at it fix header comment, to refer to the actual script (which was renamed in commit 6e778099). FTR: we're still using xz (and not using e.g. zstd) because it still seems to be the combination of small file size *and* decompression speed now that we have multithreading support (though zstd might be an interesting option in the future), also see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=976054 --- diff --git a/etc/grml/fai/config/files/etc/initramfs-tools/conf.d/xz-compress/GRMLBASE b/etc/grml/fai/config/files/etc/initramfs-tools/conf.d/xz-compress/GRMLBASE index 3631ac8..613eb4b 100644 --- a/etc/grml/fai/config/files/etc/initramfs-tools/conf.d/xz-compress/GRMLBASE +++ b/etc/grml/fai/config/files/etc/initramfs-tools/conf.d/xz-compress/GRMLBASE @@ -1,10 +1,5 @@ -# This file is installed by grml-live in 10-build-initramfs. +# This file is installed by grml-live in 80-initramfs. # Its purpose is to use XZ compression when building initramfs. -# this is a workaround to pass custom options to the xz compression -xz() { - command xz --check=crc32 -} - -# enable XZ compression, reducing initramfs size from ~17MB to ~12MB -compress=xz +# enable XZ compression, reducing initramfs size from ~50MB to ~33M +COMPRESS=xz