← Back to issue list

plugins: kernel: split kernel plugin into kernel and initrd plugins

View original Github issue

Metadata

Project
snapcraft
Number
#4302
Type
pull request
State
closed
Author
kubiko
Labels
—
Created
Updated
Closed

Current evaluation

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.

Resolution: closed superseded

Reason: Author kubiko closed the PR citing "Closing PR as superseded with https://github.com/canonical/snapcraft/pull/5814". #5814 ("feat(plugins): add kernel and initrd plugins") was merged as commit 8f56d299d, later extended by #6116 (7c9706674) and merged to main via #6284 (ceace05f3), landing the reworked kernel plugin plus new initrd/UKI plugin documented at docs/reference/plugins/initrd_plugin.rst.

Evaluated by: mr-cal-bot

No scores available.

Issue body

kernel plugin builds two components, kernel and initrd While initrd is dependent on the kernel, it is a separate component. Separating those 2 steps into 2 own plugins will allow greater reuse of the kernel plugin as well as each plugin being owned by respective teams. Initrd steps will always depend on the kernel step, but with the plugin separation, prebuilt kernel binaries can be used with the initrd plugin In the future inird might even become the official way to build kernel snap from kernel deb packages. For simplicity now ignoring signed kernels... -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded 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.
stealth/space-bunny-alpha — closed superseded Closed unmerged as superseded by snapcraft#5814, which delivered the replacement kernel and initrd plugin implementation.
stealth/space-bunny-alpha — closed superseded Kernel/initrd plugin split was closed as superseded by merged PR #5814, which reworked the plugins in commit 8f56d299d.
stealth/space-bunny-alpha — closed superseded Closed as superseded by merged PR #5814 (8f56d299d), which reworked the kernel plugin and added a separate initrd plugin.
qwen/qwen3.6-35b-a3b — — Splitting the kernel plugin into separate kernel and initrd components was closed as superseded by PR #5814. Review discussions addressed cross-compilation and LXD setup, but the changes were ultimately replaced by a newer implementation.
qwen3.6-35b-a3b-mtp-q6 — — Splitting the kernel plugin into separate kernel and initrd components was closed as superseded by pull request #5814. Review feedback covered cross-compilation and module handling prior to closure.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/snapcraft#5814 (confidence 99%)

    Cited by the author as the replacement; merged as commit 8f56d299d adding kernel and initrd/UKI plugins

  • Related To: canonical/snapcraft#6116 (confidence 80%)

    Commit 7c9706674 extends the kernel and initrd plugins landed by #5814

  • Related To: canonical/snapcraft#6284 (confidence 75%)

    Commit ceace05f3 merges the kernel/initrd plugin feature branch into main

  • Blocked By: canonical/craft-archives#104 (confidence 70%)

    Reviewer dilyn-corner said the PR should not merge until foreign-architecture/cross-build support was figured out; later resolved by craft-archives PR #153

Related issues

Issue Project State Summary Similarity
#287 plugins: add kernel plugin implementation craft-parts closed 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.
79%
#5437 Adding initrd plugin supporting UC20+ snapcraft closed kubiko's initrd plugin PR (kernel .ko staging, firmware, EFI kernel images) sat unreviewed for ~1yr with failing tests/lint and was closed unmerged as superseded by canonical/snapcraft#5814, merged as 8f56d299d.
78%
#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.
74%
#5814 feat(plugins): add kernel and initrd plugins snapcraft merged Merged #5814 in 8f56d299d, adding a reworked post-core18 kernel plugin and a new initrd/UKI plugin; it supersedes #4302.
74%
#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.
73%
#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.
73%
#747 kernel plugin: vmlinuz -> kernel.img hard link snapcraft closed Closed unmerged and superseded by canonical/snapcraft#748, which merged the kernel.img naming change in commit f77341d72.
73%
#6254 feat(kernel,initrd): extend plugins with new options, stabilize snapcraft merged PR #6254 merged as commit 518476fc1, adding kernel/initrd plugin options, stability fixes, docs and a new kernel-deb spread test; later landed on main via #6284 (ceace05f3).
72%
#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.
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%