many: support kernel.version customization - #2618
Draft
supakeen wants to merge 1 commit into
Draft
Conversation
Support optionally pinning the kernel version through the kernel customization. This can be useful when debugging with older kernel packages or when dealing with certain NVIDIA drivers. Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>
achilleas-k
reviewed
Aug 25, 2026
Comment on lines
+37
to
+48
| if expected.Version != "" { | ||
| stdout, _, _, err := ExecString("rpm", "-q", "--queryformat", "%{VERSION}-%{RELEASE}", expected.Name) | ||
| if err != nil { | ||
| return Fail("failed to query kernel version:", err) | ||
| } | ||
|
|
||
| if !strings.HasPrefix(stdout, expected.Version) { | ||
| return Fail("kernel version mismatch: expected", expected.Version, "got", stdout) | ||
| } | ||
|
|
||
| log.Printf("Kernel version check passed: %s matches %s\n", stdout, expected.Version) | ||
| } |
Member
There was a problem hiding this comment.
Thinking about how to test this:
We could have a test config with a custom repo pointing to an older snapshot with an older kernel and pin it in the config. We could do it with an older distro version, something with long term support (RHEL 9.6 probably), so we don't need to change it any time soon.
Member
Author
There was a problem hiding this comment.
Yea this sounds like something that should work. I was going to initially maybe not provide a test config for this yet on the other hand if it's straightforward to test maybe we should.
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.
Support optionally pinning the kernel version through the kernel customization. This can be useful when debugging with older kernel packages or when dealing with certain NVIDIA drivers.
Will need osbuild/blueprint#55 to land first so draft.