tar command uses an option not available in BusyBox
See original GitHub issueOutput 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:
- Created 3 years ago
- Reactions:17
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue was closed because it has been inactive for 5 days since being marked as stale.
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.