← Back to issue list

Support `kernel.yaml` similar to `gadget.yaml`

View original Github issue

Metadata

Project
snapcraft
Number
#4982
Type
issue
State
open
Author
dilyn-corner
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Request to support kernel.yaml as a snap metadata file moved to meta/ by Snapcraft. Core feature implemented via PR #3464 and #6369; remaining gadget.yaml location work tracked in #4344. Inactive 461 days.

Suggested action: close stale

Reason: The primary request — copying kernel.yaml to meta/ for kernel snaps — is implemented: PR #3464 (merged) added the copy in setup_assets.py, and PR #6369 added mediated packaging in package.py with full test coverage. The reporter's own last comment (2024-09-10) states 'this issue is now basically identical to #4344', which remains open for the snap/ subdirectory location question. The issue is also inactive for 461 days.

Impact: 30 Quick Win: 22.5 Staleness: 75 Complexity: 25 Confidence: 88 Support Request: 10

Issue body

### What needs to get done The `kernel.yaml` file in kernel snaps should be a supported metadata file similar to `snapcraft.yaml`, `hooks/*`, etc. It should be moved by Snapcraft to the `meta/` directory. ### Why it needs to get done The `kernel.yaml` file integrates the kernel snap with the gadget snap, allowing kernel assets to be leveraged by the gadget snap during image creation time. A primary use-case for this is sharing things like DTB files. For instance, see [the pi-gadget](https://github.com/snapcore/pi-gadget/blob/8067a8e903f534f22dc428cc26c940b6b4fe8914/gadget.yaml#L14). Supporting `kernel.yaml` will make supporting `assumes: [kernel-assets]` more meaningful, as that is a stated purpose of the `assumes`. `kernel-assets` has been an existent feature for three years and is not marked as experimental. https://github.com/canonical/snapd/blame/d1ab1252636424044a97e596659c296441fdcfb4/overlord/snapstate/check_snap.go#L53 Tangentially related to this request is supporting the `gadget.yaml` similar to other metadata files (see https://github.com/canonical/snapcraft/issues/4344), and I think that if this feature request is accepted both the `gadget.yaml` and `kernel.yaml` should be supported in similar ways.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 30
Quick Win: 22.5
Staleness: 75
Complexity: 25
Confidence: 88
Support Request: 10
close stale Request to support kernel.yaml as a snap metadata file moved to meta/ by Snapcraft. Core feature implemented via PR #3464 and #6369; remaining gadget.yaml location work tracked in #4344. Inactive 461 days.
qwen/qwen3.6-35b-a3b
Staleness: 75
Complexity: 45
Confidence: 70
Support Request: 10
keep open Enhancement to support kernel.yaml as a metadata file in kernel snaps. Triaged and scoped, with maintainer design feedback provided. Currently awaiting implementation or further tracking.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 40
Confidence: 80
Support Request: 5
keep open Enhancement to support kernel.yaml as a metadata file in kernel snaps, mirroring gadget.yaml handling. Triaged, with maintainer design feedback and backward compatibility discussion. Currently inactive but tracked alongside related issue 4344.
qwen3.6-35b-a3b-mtp-q6
Staleness: 70
Complexity: 30
Confidence: 60
Support Request: 0
keep open Enable kernel.yaml as a standard metadata file in Snapcraft, automatically moving it to meta/ to support kernel-gadget integration and assumes: kernel-assets. Triaged, currently in design discussion, and functionally aligned with gadget.yaml support.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#3464 (confidence 95%)

    Merged PR 'meta: add support for kernel.yaml for kernel snaps' — directly implements the core request of this issue.

  • Duplicate Of: snapcraft#4344 (confidence 85%)

    Reporter explicitly stated 'this issue is now basically identical to #4344' in their last comment; #4344 tracks the remaining gadget.yaml/kernel.yaml location unification.

  • Related To: snapcraft#6369 (confidence 80%)

    PR 'feat: mediate creation of gadget.yaml and kernel.yaml' extends the kernel.yaml support to the core24+ mediated packaging path.

Related issues

Issue Project State Summary Similarity
#6357 Mediate metadata creation for gadget and kernel snaps snapcraft open Feature request to mediate gadget.yaml and kernel.yaml creation via craft-application 7.1.0 API. The feature has been implemented and merged in PR #6369.
73%
#3742 parts: copy kernel.yaml and gadget.yaml snapcraft merged Merged implementation copying kernel.yaml and gadget.yaml into the meta directory for respective snap types. Approved by maintainer, passed CI checks, and resolved CRAFT-1072.
72%