kernel plugin: install .config as config-$kernelversion
Metadata
Current evaluation
Merged PR #2207 (commit 3b12e9c80) by piso77 makes the kernel plugin install the build .config as config-$kernelversion in the kernel snap root, fixing LP1786190.
Resolution: closed resolved
Reason: The PR was merged into master as commit 3b12e9c80 with a 5-line addition to the kernel plugin; the behaviour persists in today's kernel_build.sh, which copies ${CRAFT_PART_BUILD}/.config to ${CRAFT_PART_INSTALL}/config-${_kver}. The PR states it fixes LP1786190.
Evaluated by: mr-cal-bot
No scores available.
Issue body
In Ubuntu classic we ship the kernel config as config-$kernelversion in /boot, and the same we do for kernel snaps available in the store: they contain the kernel config file as config-$kernelversion in the root of the kernel snap.
Unfortunately the kernel plugin never shipped the .config used to build the kernel, so fix it by installing it as config-$kernelversion in the root of the freshly generated kernel snap.
This fixes [LP1786190](https://bugs.launchpad.net/snapcraft/+bug/1786190)
Signed-off-by: Paolo Pisati <p.pisati@gmail.com>
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2207 (commit 3b12e9c80) by piso77 makes the kernel plugin install the build .config as config-$kernelversion in the kernel snap root, fixing LP1786190. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR canonical/snapcraft#2207 as commit 3b12e9c80; kernel snaps now include the build .config as config-$kernelversion in their root, addressing LP1786190. | |
| stealth/space-bunny-alpha | — | closed resolved | PR #2207 was approved and merged, adding the kernel build .config as config-$kernelversion in generated snaps and fixing LP1786190. | |
| qwen/qwen3.6-35b-a3b | — | — | Kernel plugin now installs the build .config as config-$kernelversion in the snap root, matching Ubuntu classic behavior. Resolves Launchpad bug LP1786190. Merged following reviewer approval and successful CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into master. The kernel plugin now installs the build config as config-$kernelversion in the snap root, resolving LP1786190. The change achieved 100 percent diff coverage and increased overall coverage by 0.01 percent. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#5814
(confidence 45%)
Current kernel_build.sh (added in #5814) retains the same .config -> config-${_kver} install, showing the fix carried forward.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1786190 kernel plugin: install .config as config-$kernelversion | snapcraft (launchpad) | closed | Fixed by merged canonical/snapcraft#2207 (commit 3b12e9c80): the kernel plugin now installs the build .config as config-$kernelversion. | |
| #1689564 kernel plugin: check_config(): improve the messaging for some CONFIG_* option | snapcraft (launchpad) | closed | Messaging-only change to kernel plugin check_config() landed via GitHub PR snapcore/snapcraft#1303, merged as commit 05c94178; maintainer sergiusens linked the PR and closed LP #1689564. | |
| #1303 kernel plugin: slightly improve the messaging of check_config() | snapcraft | merged | Merged as 05c941787: PR #1303 by piso77 reworded kernel plugin check_config() error messages to state which kernel versions each CONFIG option applies to (LP: #1689564). Message-only, no functional change. | |
| #4210 kernel plugin: properly generate Ubuntu kernel .config | snapcraft | merged | Merged #4210 as da9006784, replacing manual config assembly with debian/rules genconfigs for Jammy+ annotation-based Ubuntu kernels. |