Skip to content

[ubuntu] Support non-standard kernel version naming#602

Open
jfernandez wants to merge 1 commit intoNVIDIA:mainfrom
jfernandez:support-custom-kernel-naming
Open

[ubuntu] Support non-standard kernel version naming#602
jfernandez wants to merge 1 commit intoNVIDIA:mainfrom
jfernandez:support-custom-kernel-naming

Conversation

@jfernandez
Copy link

@jfernandez jfernandez commented Feb 7, 2026

Query apt-cache for linux-headers package info once and attempt to parse the version using the existing major.minor.patch-revision regex. When the regex does not match (e.g. custom/distro kernels with non-standard naming), keep KERNEL_VERSION unchanged instead of failing. This preserves the existing resolution logic for standard Ubuntu kernels while allowing custom kernels to work without modification.

Applied to all Ubuntu/Debian variants and vgpu-manager Ubuntu variants.

Closes: #601

@copy-pr-bot
Copy link

copy-pr-bot bot commented Feb 7, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@jfernandez jfernandez force-pushed the support-custom-kernel-naming branch from a70822e to 88ef378 Compare February 7, 2026 17:56
Query apt-cache for linux-headers package info once and attempt to parse
the version using the existing major.minor.patch-revision regex. When the
regex does not match (e.g. custom/distro kernels with non-standard naming),
keep KERNEL_VERSION unchanged instead of failing. This preserves the
existing resolution logic for standard Ubuntu kernels while allowing
custom kernels to work without modification.

Applied to all Ubuntu/Debian variants and vgpu-manager Ubuntu variants.

Closes: NVIDIA#601
Signed-off-by: Jose Fernandez <josef@netflix.com>
@jfernandez jfernandez force-pushed the support-custom-kernel-naming branch from 88ef378 to 0f9b25c Compare March 15, 2026 00:02
@jfernandez
Copy link
Author

@shivakunv ready for another review.

@shivakunv
Copy link
Contributor

@jfernandez Please share the test logs for both types of kernels, if available.

@rajathagasthya LGTM. PTAL

@jfernandez
Copy link
Author

@shivakunv I will verify the latest version with our infra this week. I should get you test logs before the end of the week.

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.

[Bug]: Ubuntu driver scripts assume standard kernel version naming, breaking custom kernels

2 participants