shorten wait on remove

This commit is contained in:
Tobias Powalowski 2022-10-24 15:37:29 +02:00
parent 9ea30b052c
commit 564ad0606e

View file

@ -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
}