Skip to content

fix(kernel): set CONFIG_VERSION_SIGNATURE for Ubuntu flavour configs (#6497) - #6542

Open
canonical-nicoharnois wants to merge 1 commit into
canonical:hotfix/9.2from
canonical-nicoharnois:issue-6497-kernel-version-signature
Open

canonical-nicoharnois wants to merge 1 commit into
canonical:hotfix/9.2from
canonical-nicoharnois:issue-6497-kernel-version-signature

Conversation

@canonical-nicoharnois

Copy link
Copy Markdown

When the kernel config is generated from an Ubuntu flavour, genconfigs leaves CONFIG_VERSION_SIGNATURE empty because the Ubuntu packaging only sets it in its binary-arch step, which the plugin never runs. Kernel snaps built from source therefore had an empty /proc/version_signature.

Set it with the same sed as debian/rules, using release_info and 'make kernelversion'. Values from kernel-kconfigs still take precedence.


  • I've followed the contribution guidelines.
  • I've signed the CLA.
  • I've successfully run make lint && make test.
  • I've added or updated any relevant documentation.
  • In documents I changed, I added a meta description if one was missing.
  • I've updated the relevant release notes.

…anonical#6497)

When the kernel config is generated from an Ubuntu flavour, genconfigs
leaves CONFIG_VERSION_SIGNATURE empty because the Ubuntu packaging only
sets it in its binary-arch step, which the plugin never runs. Kernel
snaps built from source therefore had an empty /proc/version_signature.

Set it with the same sed as debian/rules, using release_info and
'make kernelversion'. Values from kernel-kconfigs still take precedence.

Signed-off-by: Nicolas Harnois <nicolas.harnois@canonical.com>
@canonical-nicoharnois
canonical-nicoharnois requested review from a team and mr-cal as code owners November 3, 2026 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant