Skip to content

how-to: image-creation: revamp kernel snap build guide#344

Draft
dilyn-corner wants to merge 4 commits into
canonical:mainfrom
dilyn-corner:kernel-update
Draft

how-to: image-creation: revamp kernel snap build guide#344
dilyn-corner wants to merge 4 commits into
canonical:mainfrom
dilyn-corner:kernel-update

Conversation

@dilyn-corner
Copy link
Copy Markdown
Collaborator

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. :)

@dilyn-corner dilyn-corner marked this pull request as draft April 17, 2026 16:04
@dilyn-corner dilyn-corner self-assigned this 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.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
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>
Comment thread docs/how-to-guides/image-creation/build-a-kernel-snap.md Outdated
Comment thread docs/how-to-guides/image-creation/build-a-kernel-snap.md Outdated
Comment thread docs/how-to-guides/image-creation/build-a-kernel-snap.md Outdated
Comment thread docs/how-to-guides/image-creation/build-a-kernel-snap.md Outdated
Comment thread docs/how-to-guides/image-creation/build-a-kernel-snap.md Outdated
Comment thread docs/how-to-guides/image-creation/build-a-kernel-snap.md Outdated
Comment thread docs/how-to-guides/image-creation/build-a-kernel-snap.md Outdated
Comment thread docs/how-to-guides/image-creation/build-a-kernel-snap.md Outdated
Copy link
Copy Markdown

@canonical-nicoharnois canonical-nicoharnois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants