Skip to content

ostree backend: Fix duplicate objects without /ostree in container #1637

@jlebon

Description

@jlebon

Edited by @cgwalters

Goal: Ensure that when a container image doesn't have /ostree we don't end up with duplicate ostree objects (one labeled in a default way and one with the final label).

Mitigations:

  • payload-link
  • Change the commit process to be two phase: save layers but do it in way that we avoid duplicate objects
  • Unified storage #20

Hard constraint: Must not break rpm-ostree (or ostree) when used directly

Original:


We've now moved to client-side SELinux labeling. I think we should still though support server-side labeling, I guess through ostree container commit/bootc build commit? I think this today though conflicts with wanting to move away from /ostree in the container image, but it could be implemented differently of course.

The main argument is simply reproducibility. Notably, coreos/fedora-coreos-tracker#2030 happened which is a great example of why doing this server-side would be better for those that want to opt in (like FCOS/RHCOS).

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/selinuxRelates to SELinuxenhancementNew feature or requesttriagedThis issue appears to be valid

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions