This commit is contained in:
illiliti 2020-02-10 16:22:07 +03:00
parent eb8b531f1d
commit 4d0945f1f7

View File

@ -372,14 +372,13 @@ EOF
# create and compress cpio archive
create_initramfs() {
msg info "creating initramfs image"
# TODO rewrite this ugly mess | dash doesn't working here
{
( cd "$tmpdir" && {
find . | cpio -oH newc | gzip -9
} ) > "${script_dir}/initramfs-${kernel}.img.gz"
} >/dev/null 2>&1
[ "$?" = 0 ] || msg panic "failed to generate initramfs image"
( cd "$tmpdir"
find . |
cpio -oH newc |
gzip -9 ) |
tee "${script_dir}/initramfs-${kernel}.img.gz"
} >/dev/null 2>&1 || msg panic "failed to generate initramfs image"
}
# check root