Create a squashfs filesystem from a tar archive. More information: https://manned.org/sqfstar.
gzip by default) from an uncompressed tar archive:sqfstar filesystem.squashfs < archive.tar
gzip, and [comp]ress the filesystem using a specific algorithm:zcat archive.tar.gz | sqfstar -comp gzip|lzo|lz4|xz|zstd|lzma filesystem.squashfs
xz, excluding some of the files:xzcat archive.tar.xz | sqfstar filesystem.squashfs file1 file2 ...
zstd, excluding files ending with .gz:zstdcat archive.tar.zst | sqfstar filesystem.squashfs "*.gz"
lz4, excluding files matching a regular expression:lz4cat archive.tar.lz4 | sqfstar filesystem.squashfs -regex "regular_expression"