Open prydom opened 4 days ago
Thanks for that analysis! Indeed this looks like a basic bug in core ostree, we need to always ensure the xattrs are sorted. (composefs does this)
I recently hit a related bug in https://github.com/ostreedev/ostree/pull/3261 - and so a good first step here would be to change our object writing code and fsck code to enforce this.
@cgwalters, based on my recent test of https://github.com/ostreedev/ostree/pull/3346 it looks like we might need an accompanying change to ostree-ext-rs/bootc to ensure xattrs introduced by container layering are also sorted.
I undid my workaround that stripped all the user.* attributes from buildah layered images during that test.
Putting a pointer to https://github.com/containers/bootc/issues/920#issuecomment-2501967928 here. Please read the initial report there for a minimal reproduction script. The observed behavior was:
ostree fsck
on a bootable base image created from an ostree commit.ostree fsck
if further container layers added xattrs.I originally filed in bootc since I thought the bug was in the ostree-ext-rs crate but based on the following analysis I think the issue is in OSTree.