From 5267c866458dfcc3f8a27598d2ce89ad00ec90c6 Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 3 Feb 2022 09:42:15 +0100 Subject: [PATCH] correct initramfs creation --- usr/bin/archboot-update-installer.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/bin/archboot-update-installer.sh b/usr/bin/archboot-update-installer.sh index 6b0a21cc0..ef53c7277 100755 --- a/usr/bin/archboot-update-installer.sh +++ b/usr/bin/archboot-update-installer.sh @@ -120,9 +120,10 @@ if [[ "${_L_COMPLETE}" == "1" || "${_L_INSTALL_COMPLETE}" == "1" ]]; then rm -r "${_W_DIR}" || exit 1 echo "Step 6/8: Create initramfs /initrd.img ..." echo " This will need some time ..." - find initrd/. -mindepth 1 -printf '%P\0' | sort -z | LANG=C bsdtar --uid 0 --gid 0 --null -cnf - -T - |\ + cd initrd || exit 1 + find . -mindepth 1 -printf '%P\0' | sort -z | LANG=C bsdtar --uid 0 --gid 0 --null -cnf - -T - |\ LANG=C bsdtar --null -cf - --format=newc @- | zstd -T0 > /initrd.img || exit 1 - mv "${_W_DIR}"/usr/lib/initcpio/functions.old "${_W_DIR}"/usr/lib/initcpio/functions + cd .. echo "Step 7/8: Remove /initrd ..." rm -r "/initrd" || exit 1 ### not supported