question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tar command uses an option not available in BusyBox

See original GitHub issue

Output of a recent build using Alpine 1.31.1:

/bin/tar: unrecognized option: P
BusyBox v1.31.1 () multi-call binary.

Usage: tar c|x|t [-ZzJjahmvokO] [-f TARFILE] [-C DIR] [-T FILE] [-X FILE] [--exclude PATTERN]... [FILE]...

Create, extract, or list files from a tar file

	c	Create
	x	Extract
	t	List
	-f FILE	Name of TARFILE ('-' for stdin/out)
	-C DIR	Change to DIR before operation
	-v	Verbose
	-O	Extract to stdout
	-m	Don't restore mtime
	-o	Don't restore user:group
	-k	Don't replace existing files
	-Z	(De)compress using compress
	-z	(De)compress using gzip
	-J	(De)compress using xz
	-j	(De)compress using bzip2
	-a	(De)compress using lzma
	-h	Follow symlinks
	-T FILE	File with names to include
	-X FILE	File with glob patterns to exclude
	--exclude PATTERN	Glob pattern to exclude
[warning]Tar failed with error: The process '/bin/tar' failed with exit code 1

Would it be possible to solve this problem so anyone could use lighter images for building?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:17
  • Comments:5

github_iconTop GitHub Comments

2reactions
github-actions[bot]commented, May 18, 2022

This issue was closed because it has been inactive for 5 days since being marked as stale.

2reactions
github-actions[bot]commented, May 7, 2022

This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Busybox tar does not support requested options #162
As per this comment, unpack on an embedded ARMv7 device using busybox fails due to options passed to tar. │ [08:26:52] tar: unrecognized...
Read more >
BusyBox's tar --exclude and -X option do not appear to be ...
BusyBox's tar --exclude and -X option do not appear to be working ... Since the current system seems to be using a >...
Read more >
tar command in execl using busybox. Error: no such file or ...
I have a linux based device that runs c++ code using QT framework. Using QProcess is not an option, since ...
Read more >
tar - BusyBox-Commands
Model Firmware Path Size FRITZ!Box 2.76 ‑ 4.02 /bin, Link FRITZ!Box 5530 Fiber (prx) 7.27 ‑ 7.30 /bin Link FRITZ!Box SL 1.63 ‑ 3.94 /bin, Link...
Read more >
tar --exclude doesn't exclude. Why?
I am using a mac, and found that excludes weren't working unless the top level folder is the last argument. example of working...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found