how-to: image-creation: revamp kernel snap build guide#344
Draft
dilyn-corner wants to merge 4 commits into
Draft
how-to: image-creation: revamp kernel snap build guide#344dilyn-corner wants to merge 4 commits into
dilyn-corner wants to merge 4 commits into
Conversation
dilyn-corner
commented
Apr 17, 2026
| The following is an annotated snapcraft.yaml file that can be used as a foundation for your own kernel snap: | ||
| ### Crafting the snap | ||
|
|
||
| Snapcraft provides [kernel]() and [initrd]() plugins for creating kernel snaps. |
Collaborator
Author
There was a problem hiding this comment.
This links are missing until the pages go public, to discourage early merging :)
With the forthcoming release of the kernel and initrd plugins in snapcraft, the kernel snap build how-to should be updated to reflect the new methods. I wouldn't merge this until those plugins are released, of course. If by some horrific accident they don't get merged, we can cull the plugin-specific aspects and I can provide a variant that doesn't require plugins. Because, well, you don't need a plugin. :) Signed-off-by: Dilyn Corner <dilyn.corner@canonical.com>
Signed-off-by: Dilyn Corner <dilyn.corner@canonical.com>
c8ae9f9 to
04c6c2e
Compare
In recent revisions of the kernel plugin, the kernel image uses the canonical name "vmlinuz". It is up to the user to identify what the final name should be (it would be based on what the gadget snap specifies). Signed-off-by: Dilyn Corner <dilyn.corner@canonical.com>
sidalit
reviewed
Jun 2, 2026
canonical-nicoharnois
approved these changes
Jun 2, 2026
canonical-nicoharnois
left a comment
There was a problem hiding this comment.
Thanks Dilyn for this, so glad to see clarification of how to build the kernel snaps in our Core documentation!
Signed-off-by: Dilyn Corner <dilyn.corner@canonical.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the forthcoming release of the kernel and initrd plugins in snapcraft, the kernel snap build how-to should be updated to reflect the new methods.
I wouldn't merge this until those plugins are released, of course. If by some horrific accident they don't get merged, we can cull the plugin-specific aspects and I can provide a variant that doesn't require plugins. Because, well, you don't need a plugin. :)