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