Can't prime symlink in resulting oci
Metadata
Current evaluation
Symlinked subdirs were dropped when building OCI layers because os.walk() does not follow symlinks. Fixed by merged PR #211 (commit 1783fa2a, "oci: fix handling of symlink subdirs") in rockcraft/layers.py.
Resolution: closed resolved
Reason: Commit 1783fa2a (PR #211) added logic in rockcraft/layers.py to add each subdirectory that is a symlink to the layer archive result, since os.walk() never enters them. This preserves primed links such as /usr/share/perl/5.30 in the final OCI image.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Symlinked subdirs were dropped when building OCI layers because os.walk() does not follow symlinks. Fixed by merged PR #211 (commit 1783fa2a, "oci: fix handling of symlink subdirs") in rockcraft/layers.py. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #211 (commit 1783fa2a): OCI archive creation now includes symlinked subdirectories, preserving primed links such as /usr/share/perl/5.30. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after root cause was identified: os.walk skips symlinks during OCI image creation. Author proposed a patch to include symlinked subdirectories, resolving the problem. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix after the author identified os.walk skipping symlinks in rockcraft/oci.py during OCI packing. A patch to preserve symlinked directories was proposed but never merged. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed after root cause identified; a patch to follow symlinks in rockcraft/oci.py was proposed to fix the priming failure. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. User identified that os.walk in rockcraft/oci.py skips symlinks during OCI image creation and proposed a patch, but it was not merged. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/rockcraft#211
(confidence 95%)
PR #211 merged as commit 1783fa2a adding symlinked subdirs to the OCI layer archive.
-
Related To:
canonical/rockcraft#200
(confidence 60%)
Earlier commit 3f43e30e (PR #200) fixed usrmerge subdir handling in the same code area.
-
Related To:
canonical/rockcraft#195
(confidence 55%)
LXD 5.0/overlay-packages breakage reporter hit while trying workarounds for this issue.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #211 oci: fix handling of symlink subdirs | rockcraft | merged | Merged PR #211 in commit 1783fa2a, fixing OCI archive creation to include symlinked subdirectories and resolving #208. |