fix dash
This commit is contained in:
parent
eb8b531f1d
commit
4d0945f1f7
13
generate
13
generate
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user