don't show bsdtar errors

This commit is contained in:
Tobias Powalowski 2023-03-07 11:28:24 +01:00
parent c2b32d4303
commit fb0bae67cc

View file

@ -241,8 +241,8 @@ _create_initramfs() {
# compress image with zstd # compress image with zstd
cd "${_W_DIR}"/tmp || exit 1 cd "${_W_DIR}"/tmp || exit 1
find . -mindepth 1 -printf '%P\0' | sort -z | find . -mindepth 1 -printf '%P\0' | sort -z |
bsdtar --null -cnf - -T - | LANG=C bsdtar --null -cnf - -T - |
bsdtar --null -cf - --format=newc @- | zstd --rm -T0> ${_RAM}/${_INITRD} & LANG=C bsdtar --null -cf - --format=newc @- | zstd --rm -T0> ${_RAM}/${_INITRD} &
sleep 2 sleep 2
while pgrep -x zstd &>/dev/null; do while pgrep -x zstd &>/dev/null; do
_clean_kernel_cache _clean_kernel_cache