sylabs / oci-tools

Go module for working with OCI container images.
Apache License 2.0
1 stars 2 forks source link

techdebt: named pipe for sqfs2tar input #58

Closed dtrudg closed 3 weeks ago

dtrudg commented 3 weeks ago

In #52 we write the sqfs layer from an image out to disk, so that sqfs2tar can read it from a file.

We should be able to stream the data through a named pipe, used as the input for sqfs2tar to avoid the temporary file.

dtrudg commented 3 weeks ago

Unfortunately it appears this is not possible - https://github.com/AgentD/squashfs-tools-ng/issues/24

The structure of a SquashFS filesystem is such that it can't be handled easily as a stream.