From 564ad0606e0a4ce29f2ec6f8ea7952c9d9d0d2fd Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Mon, 24 Oct 2022 15:37:29 +0200 Subject: [PATCH] shorten wait on remove --- usr/lib/archboot/update-installer.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/usr/lib/archboot/update-installer.sh b/usr/lib/archboot/update-installer.sh index 0e68390a7..cce009da4 100644 --- a/usr/lib/archboot/update-installer.sh +++ b/usr/lib/archboot/update-installer.sh @@ -282,10 +282,9 @@ _create_initramfs() { find . -mindepth 1 -printf '%P\0' | sort -z | bsdtar --uid 0 --gid 0 --null -cnf - -T - | bsdtar --null -cf - --format=newc @- | zstd --rm -T0> /initrd.img & - sleep 2 + sleep 5 for i in $(find . -mindepth 1 -type f | sort -z); do rm "${i}" - sleep 0.0015 done while pgrep -x zstd > /dev/null 2>&1; do _clean_kernel_cache @@ -308,8 +307,7 @@ _kexec() { #shellcheck disable=SC2115 rm -rf /usr/* while true; do - _clean_kernel_cache - sleep 1 + true done }