Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have written a script which executes in init-bottom within the initram. So it uses busybox for the commands. I included gzip from my distro to initram (gzip 1.5 went to /bin).

This is causing a "broken pipe"-error. I do not understand why:

find . -depth -print0|pax -wv0|/bin/gzip -c -1 ->${somewhere}/archive.pax.gz

I can use the -z option of pax instead of the gzip pipe: The same broken pipe. Using busybox gzip instead of /bin/gzip does the job. But why?

share|improve this question
    
Does /bin/gzip work correctly ? Can you give us the output of ldd /bin/gzip ? –  Vinz Dec 4 '13 at 9:32
    
What's the exit status of the gzip process? (echo $? after the pipeline) –  Gilles Dec 4 '13 at 20:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.