From 17ed4ea2a0086eebf08cd40804d33d0871e02176 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 17 Jul 2024 07:04:22 +0200 Subject: [PATCH] add comment about cpio creation --- usr/lib/archboot/cpio/cpio.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/lib/archboot/cpio/cpio.sh b/usr/lib/archboot/cpio/cpio.sh index 92abb5fd7..48537662f 100644 --- a/usr/lib/archboot/cpio/cpio.sh +++ b/usr/lib/archboot/cpio/cpio.sh @@ -253,6 +253,8 @@ _create_cpio() { # cpio, pax, tar are slower than bsdtar! # LC_ALL=C.UTF-8 bsdtar --null -cnf - -T - | # LC_ALL=C.UTF-8 bsdtar --null -cf - --format=newc @- + # Compression: + # use zstd only it has best compression and decompression # Result: # Multi CPIO archive, extractable with 3cpio pushd "${_ROOTFS}" >"${_NO_LOG}" || return @@ -270,7 +272,6 @@ _create_cpio() { fd . -u -e 'bz2' -e 'gz' -e 'xz' -e 'zst' --min-depth 1 -X rm fd . -u --min-depth 1 -X touch -hcd "@0" echo "Appending zstd compressed image..." - # use zstd only it has best compression and decompression fd . -t f -t l -u --min-depth 1 -0 | sort -z | LC_ALL=C.UTF-8 bsdtar --null -cnf - -T - | LC_ALL=C.UTF-8 bsdtar --null -cf - --format=newc @- |