mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
use --rm option for zstd, remove backgrounding and loop
This commit is contained in:
parent
22b5e9a6f4
commit
06199f2895
1 changed files with 1 additions and 8 deletions
|
@ -196,14 +196,7 @@ _create_initramfs() {
|
||||||
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 --uid 0 --gid 0 --null -cnf - -T - |
|
bsdtar --uid 0 --gid 0 --null -cnf - -T - |
|
||||||
bsdtar --null -cf - --format=newc @- | zstd -T0> /initrd.img &
|
bsdtar --null -cf - --format=newc @- | zstd --rm -T0> /initrd.img
|
||||||
sleep 2
|
|
||||||
for i in $(find . -mindepth 1 -type f | sort); do
|
|
||||||
rm "${i}" >/dev/null 2>&1
|
|
||||||
done
|
|
||||||
while pgrep -x zstd >/dev/null 2>&1; do
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_kexec() {
|
_kexec() {
|
||||||
|
|
Loading…
Reference in a new issue