From 93654c9230d3817fa57069012a0b06ccb1df09e4 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Fri, 13 Feb 2009 17:09:35 +0100 Subject: mkinitramfs: Fix new pipe construct to really work inside "${DESTDIR}" trivial fix on top of previous change. afais cpio doesn't really give sensible return errors, so this fall through the cracks. --- mkinitramfs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkinitramfs b/mkinitramfs index 0aa2ba7..2f5112c 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -273,8 +273,9 @@ exec 3>&1 eval ` # http://cfaj.freeshell.org/shell/cus-faq-2.html exec 4>&1 >&3 3>&- + cd "${DESTDIR}" { - cd "${DESTDIR}" && find . 4>&-; echo "ec1=$?;" >&4 + find . 4>&-; echo "ec1=$?;" >&4 } | { cpio --quiet --dereference -o -H newc 4>&-; echo "ec2=$?;" >&4 } | gzip >"${outfile}" -- cgit v1.2.3