Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

Your Answer


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

Browse other questions tagged or ask your own question.