kernel plugin: properly generate Ubuntu kernel .config
Metadata
Current evaluation
Merged. Fixes Ubuntu kernel .config generation for Jammy+ by switching to debian/rules genconfigs instead of manual assembly. Resolved CLA email mismatch and approved by the kernel team before merge.
Suggested action: —
No scores available.
Issue body
Recent Ubuntu kernels (>= Jammy) are now using a new format to store their .config, called annotations [1].
The kernel plugin is trying to assemble a .config using the old config chunks stored in `debian.<kernel>/config/*` that are not available anymore in the kernels that are using this new annotations model.
Instead of trying to manually assemble the config we should rely on `debian/rules genconfigs` that is more portable across different Ubuntu kernels and releases.
[1] https://lists.ubuntu.com/archives/kernel-team/2023-June/140230.html
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `make lint`?
- [x] Have you successfully run `pytest tests/unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Fixes Ubuntu kernel .config generation for Jammy+ by switching to debian/rules genconfigs instead of manual assembly. Resolved CLA email mismatch and approved by the kernel team before merge. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. The kernel plugin now uses debian/rules genconfigs to generate Ubuntu kernel .config files, fixing compatibility with newer Ubuntu releases. Approved by the kernel team and merged after passing tests and resolving a CLA email mismatch. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1285 kernel plugin: learn how to assemble the ubuntu config using kconfigflavour | snapcraft | merged | Merged. Replaces shell script wrappers in the snapcraft kernel plugin with direct extraction of Ubuntu kernel configs from debian config files using the kconfigflavour parameter. Approved by reviewers and merged after passing CI. | |
| #1219 kernel plugin: learn how to assemble the ubuntu config using kconfigflavour | snapcraft | closed | Closed without merging due to unresolved review feedback. The pull request proposed refactoring the kernel plugin to extract Ubuntu configuration from debian config directories instead of shell scripts, but requested changes were never addressed. | |
| #1115 kernel plugin: fix kernel snap layout | snapcraft | merged | Merged fix correcting the kernel plugin snap layout for firmware and modules directories, updating required package lists, and addressing review feedback. Approved, passed CI, and merged after CLA verification. |