feat(overlay): plugins can define overlay commands
Metadata
Current evaluation
Merged PR enabling plugins to define overlay commands that execute inside the overlay chroot. Introduces override-overlay support with craftctl default signaling, mutually exclusive with overlay-script. Resolves CRAFT-5027.
Suggested action: —
No scores available.
Issue body
Allow plugins to define overlay commands that run inside of the overlay
chroot. If the user adds an `override-overlay`, they can replace those
commands, or they can wrap them and let `craftctl default` signal where
the plugin's original commands would run.
Unlike other steps, only `craftctl default` is accepted in `override-overlay`.
This is not a regression because previously the `craftctl` command couldn't
be used in an override-overlay scriptlet at all.
In addition to `overlay-script` being mutually exclusive with `override-overlay`,
`overlay-script` is now also mutually exclusive with the plugin offering overlay
commands.
- [ ] Have you followed the guidelines for contributing?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint && make test`?
- [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
---
CRAFT-5027
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged PR enabling plugins to define overlay commands that execute inside the overlay chroot. Introduces override-overlay support with craftctl default signaling, mutually exclusive with overlay-script. Resolves CRAFT-5027. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
38
Complexity:
55
Confidence:
85
|
needs review | Allows plugins to define overlay chroot commands that users can override or wrap using craftctl default. The pull request is open, inactive for 29 days, and awaiting review or triage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #299 feat: enable override-overlay | imagecraft | merged | Merged following approval from two reviewers and passing CI checks. Updated craft-parts to ~2.30 to enable override-overlay support and added a corresponding spread test. | |
| #1415 feat: add override-overlay | craft-parts | merged | Merged override-overlay, enabling scriptlets to run in a chroot. Adds grammar support, mutual exclusivity with overlay-script, chroot mountpoints, layer hashing, and tests. Approved and passed CI. |