0

I found the error when I attempt to type for zipping my rootfs(by busybox)

 sudo find . | cpio -H newc -o | gzip > rootfs.img.gz

and error message is

bash: rootfs.img.gz: Permission denied 

and i rootfs.img.gz file isn't yet so i cant attempt to give "chmod + x" to deal with this problem.

1 Answer 1

0

Your gzip syntax is incorrect, no need to use redirect sign and try to use &&. Try below:

sudo find . && cpio -H newc -o && gzip rootfs.img.gz
1
  • thanks. But i solved this problem by switching users. (sudo su) Thank you for reply :)
    – JB WI
    Sep 21, 2020 at 4:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.