You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Tangentially related to this request is supporting the gadget.yaml similar to other metadata files (see #4344), and I think that if this feature request is accepted both the gadget.yaml and kernel.yaml should be supported in similar ways.
The text was updated successfully, but these errors were encountered:
This is a good idea. We can start with the same design as a snapcraft.yaml file where snapcraft first looks for snapcraft.yaml then looks for snap/snapcraft.yaml.
Do you want to deprecate gadget.yaml in favor of snap/gadget.yaml? Or allow it to exist in either location?
I think the safest (shudder) choice is to allow both but offer a notice -- for legacy purposes it should be treated the same as how snapcraft treats the snapcraft.yaml.
Can't make heads or tails of why I have to manually intervene.
ETA: I just checked. You don't have to manually move it, the code path works as expected. I guess I never tested it without the intervention...?
Either way, this issue is now basically identical to #4344.
What needs to get done
The
kernel.yaml
file in kernel snaps should be a supported metadata file similar tosnapcraft.yaml
,hooks/*
, etc. It should be moved by Snapcraft to themeta/
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.Supporting
kernel.yaml
will make supportingassumes: [kernel-assets]
more meaningful, as that is a stated purpose of theassumes
.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 #4344), and I think that if this feature request is accepted both thegadget.yaml
andkernel.yaml
should be supported in similar ways.The text was updated successfully, but these errors were encountered: