[ubuntu] Support non-standard kernel version naming#602
Open
jfernandez wants to merge 1 commit intoNVIDIA:mainfrom
Open
[ubuntu] Support non-standard kernel version naming#602jfernandez wants to merge 1 commit intoNVIDIA:mainfrom
jfernandez wants to merge 1 commit intoNVIDIA:mainfrom
Conversation
a70822e to
88ef378
Compare
shivakunv
reviewed
Mar 9, 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: NVIDIA#601 Signed-off-by: Jose Fernandez <josef@netflix.com>
88ef378 to
0f9b25c
Compare
Author
|
@shivakunv ready for another review. |
Contributor
|
@jfernandez Please share the test logs for both types of kernels, if available. @rajathagasthya LGTM. PTAL |
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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