sylabs / oci-tools

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

Optional conversion from AUFS to OverlayFS whiteout format in tar -> squashfs #25

Closed dtrudg closed 8 months ago

dtrudg commented 8 months ago

If a standard OCI image, with tar layers, is converted to squashfs layer format then it is likely that the resulting squashfs layers will be combined into a container root filesystem using OverlayFS. This will be the case for SingularityCE.

The image-spec tar layer format specifies AUFS style whiteout/opaque markers for files/directories that have been deleted between layers:

These markers are not understood by OverlayFS, which uses different markers:

There is no practical way to convert the markers from AUFS -> OverlayFS format at mount time. Therefore, oci-tools must be able to convert from AUFS -> OverlayFS format in the tar -> squashfs conversion.