← 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
2024-08-18 23:10:50+00:00
Updated
2025-05-27 21:36:43+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

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

No evaluation history available.