← Back to issue list

oci: handle opaque whiteouts in new layer (usrmerge)

View original Github issue

Metadata

Project
rockcraft
Number
#163
Type
pull request
State
merged
Author
tigarmo
Labels
Created
Updated
Closed

Current evaluation

Merged. Updates add_layer() to handle opaque whiteouts and explicit symlink removals, ensuring overlay-script removals properly hide base layer symlinks. Approved by two reviewers, passed CI, and modified five files.

Suggested action:

No scores available.

Issue body

Now that add_layer() looks at the base, improve its logic to support *explicit* removals/hiding of base layer symlinks. With this change, regular directories created by lifecycle's "build" step will respect symlinks in the base layer, but removals via overlay-scripts will hide those symlinks. (CRAFT-1527)

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged. Updates add_layer() to handle opaque whiteouts and explicit symlink removals, ensuring overlay-script removals properly hide base layer symlinks. Approved by two reviewers, passed CI, and modified five files.
qwen3.6-35b-a3b-mtp-q6 Merged update to add_layer() handling opaque whiteouts for explicit base layer symlink removals. Regular directories now respect base symlinks while overlay-script removals properly hide them, resolving CRAFT-1527.
qwen3.6-35b-a3b-mtp-q6 Merged. Updated add_layer() to handle opaque whiteouts, enabling explicit removal and hiding of base layer symlinks in new layers. Overlay-script removals now properly hide base symlinks while build step directories respect them. Resolves CRAFT-1527.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#115 overlay: add layer visibility helpers (CRAFT-477) craft-parts merged Merged after two approvals. Introduces helper functions to extract migratable files and directories from overlay layers, correctly processing whiteout entries and opaque directories. The change adds 315 lines across three files.
74%