Repository navigation
Use gzip tar layers for bundle OCI images - #490
Merged
Merged
Conversation
Assisted-by: Replit
Assisted-by: Replit
vlinkz
approved these changes
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Compressing files inside EROFS prevents those files from using DAX. Use gzip for OCI transport compression instead, so an image unpacker can create an uncompressed EROFS filesystem.
What changed
application/vnd.oci.image.layer.v1.tar+gziplayer instead of a native compressed EROFS layer.rootfs.diff_ids.Test plan
scripts/ci_check.sh(Nix formatting, deprecated shell-helper check, all module derivation evaluation, dev-shell smoke test, bundle evaluation andnix build .#bundle-oci-check).mkfs.erofs --tar=f --aufs --quiet -Enoinline_data. Integrity and extraction checks passed; closure contents, modes, symlinks, metadata and hardlinks were preserved.STATX_ATTR_DAX. Compressed negative controls did not, even with the same DAX mount option.ENOTSUPon filesystems without xattrs. The level-9 fixture also passed archive-header and extraction checks on an xattr-capable local filesystem.Rollout
This PR does not publish or deploy an image. A separate publisher compatibility update is required before publishing this output: the validator must accept gzip-tar as well as existing native EROFS images while keeping provenance checks.
Before using a new full bundle, check available unpacked disk space and smoke-test target VM startup. The small fixture test does not validate a complete bundle or every consumer configuration. The tar-to-EROFS unpack path must leave filesystem compression disabled.
The expanded filesystem uses more disk space than compressed EROFS. Revert this PR and rebuild to restore native compressed EROFS output. Existing image digests are unchanged.
~ written by ⠕ Replit