← Back to issue list

plugins: add kernel plugin implementation

View original Github issue

Metadata

Project
craft-parts
Number
#287
Type
pull request
State
closed
Author
kubiko
Labels
—
Created
Updated
Closed

Current evaluation

Kernel plugin PR to craft-parts closed unmerged; maintainers said it is too snap-specific. Author moved it to Snapcraft as snapcraft#3922, merged and landed on main via snapcraft#4111.

Resolution: closed superseded

Reason: Closed by the author after cmatsuoka and facundobatista (2022-09-25/27) redirected the snap-specific plugin to snapcraft/parts/plugins; the author stated he closed this PR and reimplemented it in snapcore/snapcraft#3922, which was merged (commit 2b0343c08) and landed on main via snapcraft#4111.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Adding kernel plugin to build kernel snaps from linux kernel source. Kernel snap is a specific snap for Ubuntu Core which contains kernel binary, firmware, kernel modules, dtbs, initrd There are various options usually involved, initrd has to be packaged in a specific way and have certain content. At the same time, many of the steps are common to all the kernel snaps builds. This plugin is trying to streamline this as make kernel snap build easier.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Kernel plugin PR to craft-parts closed unmerged; maintainers said it is too snap-specific. Author moved it to Snapcraft as snapcraft#3922, merged and landed on main via snapcraft#4111.
stealth/space-bunny-alpha — closed superseded Closed unmerged and superseded by snapcraft#3922, which implemented the Snapcraft-specific kernel plugin; later merged to main through snapcraft#4111.
qwen/qwen3.6-35b-a3b — — Closed. Reviewers determined the kernel plugin is snap-specific and belongs in Snapcraft rather than craft-parts. The author resubmitted the implementation as a Snapcraft plugin in PR #3922.
qwen3.6-35b-a3b-mtp-q6 — — Closed and superseded. Maintainers deemed the kernel plugin too snap-specific for craft-parts. The implementation was moved to snapcraft pull request #3922 for proper integration.

Update history

No update history recorded yet.

Related work

  • Superseded By: snapcraft#3922 (confidence 96%)

    Author's reimplementation of the kernel plugin as a Snapcraft plugin; merged (2b0343c08) into feature/kernel-plugin branch.

  • Related To: snapcraft#4111 (confidence 90%)

    Merged PR that brought the feature/kernel-plugin branch (including #3922) into Snapcraft main.

Related issues

Issue Project State Summary Similarity
#1552168 Add a kernel plugin snapcraft (launchpad) closed Kernel snap creation was implemented by merged canonical/snapcraft#366 (merge b7c1e8bbb, head 6da4ee672), adding kernel and kbuild plugins plus examples.
84%
#3980 plugins: Increase kernel plugin build environments compatibility snapcraft closed Closed unmerged because snapcraft#3922 was already on main and conflicted; maintainers deferred key-fetch and network-policy discussion to craft-archives.
80%
#4302 plugins: kernel: split kernel plugin into kernel and initrd plugins snapcraft closed PR #4302 (split kernel plugin into kernel + initrd plugins) was closed unmerged on 2025-10-14 by author kubiko as superseded by canonical/snapcraft#5814, merged in commit 8f56d299d.
79%
#366 New plugin: kernel snapcraft merged Merged PR #366 by sergiusens into master via merge commit b7c1e8bbb (head commit 6da4ee672), adding the new kernel and kbuild snapcraft plugins with two example projects, closing LP #1552168.
79%
#4111 plugins: merge kernel plugin snapcraft merged Merged PR #4111 into main, landing the craft-parts and v2 kernel plugin changes from the feature branch.
79%
#1606903 kernel plugin: can't snap a kernel using launchpad snapcraft (launchpad) closed Fixed by merged PR canonical/snapcraft#903 (commit 603948e1d), allowing Store part downloads without snapcraft login and resolving Launchpad kernel builds.
77%
#378 New plugin: kbuild snapcraft merged Added and merged the kbuild plugin in snapcraft#378 via implementation c4614c58d and merge 5b3dd6aa1, including kernel config handling and tests.
74%
#1794791 Update the kernel plugin to be base aware snapcraft (launchpad) closed Kernel and KBuild plugins gained base support via merged PR snapcore/snapcraft#2368 (commit ddbda36b5).
72%
#1816379 snapcraft kernel plugin includes always the uc16 initramfs snapcraft (launchpad) closed Closed as stale after no progress since 2019. Later, snapcraft#5814 (8f56d299d) added replacement post-core18 kernel and initrd plugins.
72%
#3922 Add v2 and v3 kernel plugins snapcraft merged PR #3922 by kubiko adding v2 and v3 (craft-parts) kernel plugins was merged as 2b0343c08 into the feature/kernel-plugin branch, published as latest/edge/kernel-plugin, then landed in main via #4111.
72%