← Back to issue list

kernel plugin: properly generate Ubuntu kernel .config

View original Github issue

Metadata

Project
snapcraft
Number
#4210
Type
pull request
State
merged
Author
arighi
Labels
—
Created
Updated
Closed

Current evaluation

Merged #4210 as da9006784, replacing manual config assembly with debian/rules genconfigs for Jammy+ annotation-based Ubuntu kernels.

Resolution: closed resolved

Reason: PR #4210 was merged into Snapcraft as commit da9006784, fixing kernel .config generation for modern Ubuntu kernels.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged #4210 as da9006784, replacing manual config assembly with debian/rules genconfigs for Jammy+ annotation-based Ubuntu kernels.
stealth/space-bunny-alpha — closed resolved Merged PR #4210 as commit da9006784, switching Ubuntu kernel config generation to debian/rules genconfigs for Jammy+ annotation-based kernels.
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
#4117 kernel plugin: call deb rules clean snapcraft merged Merged as commit e080e5a70: kernel plugin's kconfigflavour build now runs `fakeroot debian/rules clean` so SYSTEM_TRUSTED_KEYS/REVOCATION_KEYS are set by deb rules, removing the need to mod configs. Follow-up #4210 reworked Ubuntu config generation.
74%
#1285 kernel plugin: learn how to assemble the ubuntu config using kconfigflavour snapcraft merged Merged in #1285 as bc553a1c6, adding kconfigflavour support to assemble Ubuntu kernel configs from Debian config files without wrapper scripts.
74%
#1219 kernel plugin: learn how to assemble the ubuntu config using kconfigflavour snapcraft closed PR closed unmerged after changes were requested (3 open review comments). The same kconfigflavour-based Ubuntu config assembly landed later via snapcraft#1285 (commit bc553a1c6), closing LP #1675454.
72%
#2207 kernel plugin: install .config as config-$kernelversion snapcraft merged 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.
71%