2023-05-09 03:15:53 +01:00
|
|
|
# sqfstar
|
|
|
|
|
|
|
|
> Create a squashfs filesystem from a tar archive.
|
|
|
|
> More information: <https://manned.org/sqfstar>.
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Create a squashfs filesystem (compressed using `gzip` by default) from an uncompressed tar archive:
|
2023-05-09 03:15:53 +01:00
|
|
|
|
|
|
|
`sqfstar {{filesystem.squashfs}} < {{archive.tar}}`
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Create a squashfs filesystem from a tar archive compressed with `gzip`, and [comp]ress the filesystem using a specific algorithm:
|
2023-05-09 03:15:53 +01:00
|
|
|
|
|
|
|
`zcat {{archive.tar.gz}} | sqfstar -comp {{gzip|lzo|lz4|xz|zstd|lzma}} {{filesystem.squashfs}}`
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Create a squashfs filesystem from a tar archive compressed with `xz`, excluding some of the files:
|
2023-05-09 03:15:53 +01:00
|
|
|
|
|
|
|
`xzcat {{archive.tar.xz}} | sqfstar {{filesystem.squashfs}} {{file1 file2 ...}}`
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Create a squashfs filesystem from a tar archive compressed with `zstd`, excluding files ending with `.gz`:
|
2023-05-09 03:15:53 +01:00
|
|
|
|
|
|
|
`zstdcat {{archive.tar.zst}} | sqfstar {{filesystem.squashfs}} "{{*.gz}}"`
|
|
|
|
|
2024-03-14 05:01:06 +00:00
|
|
|
- Create a squashfs filesystem from a tar archive compressed with `lz4`, excluding files matching a regular expression:
|
2023-05-09 03:15:53 +01:00
|
|
|
|
|
|
|
`lz4cat {{archive.tar.lz4}} | sqfstar {{filesystem.squashfs}} -regex "{{regular_expression}}"`
|