add -9 to lz4 to save RAM

This commit is contained in:
Tobias Powalowski 2022-03-16 16:46:08 +01:00
parent 6c166410b8
commit 9f2807ba8d

View file

@ -133,7 +133,7 @@ if [[ "${_L_COMPLETE}" == "1" || "${_L_INSTALL_COMPLETE}" == "1" ]]; then
# compress image with zstd # compress image with zstd
find . -mindepth 1 -printf '%P\0' | sort -z | find . -mindepth 1 -printf '%P\0' | sort -z |
LANG=C bsdtar --uid 0 --gid 0 --null -cnf - -T - | LANG=C bsdtar --uid 0 --gid 0 --null -cnf - -T - |
LANG=C bsdtar --null -cf - --format=newc @- | lz4 -l > /initrd.img || exit 1 LANG=C bsdtar --null -cf - --format=newc @- | lz4 -l -9> /initrd.img || exit 1
cd .. cd ..
echo "Step 7/8: Remove /initrd ..." echo "Step 7/8: Remove /initrd ..."
rm -r "/initrd" || exit 1 rm -r "/initrd" || exit 1