Skip to content

kernel_install_dep.sh: Use VERSION_ID to differentate between major versions#72

Merged
roxanan1996 merged 1 commit into
mainlinefrom
{rnicolescu}_kt_fix-deps-rocky-8
May 22, 2026
Merged

kernel_install_dep.sh: Use VERSION_ID to differentate between major versions#72
roxanan1996 merged 1 commit into
mainlinefrom
{rnicolescu}_kt_fix-deps-rocky-8

Conversation

@roxanan1996
Copy link
Copy Markdown
Contributor

@roxanan1996 roxanan1996 commented May 22, 2026

IMPORTANT as it breaks kt vm lts8.6 and kt content-release lts8.6.
If people use the new images introduced here #70

Feel free to merge this even if I am not here.

Description

Now that we're using maching basic images, there is a discrepancy for rocky 8.6 images:
ROCKY_SUPPORT_PRODUCT='Rocky Linux'.
Since ROCKY_SUPPORT_PRODUCT is not the same for all versions, use VERSION_ID instead.

Tested here
#71

…ersions

Now that we're using maching basic images, there is a discrepancy
for rocky 8.6 images:
ROCKY_SUPPORT_PRODUCT='Rocky Linux'.
Since ROCKY_SUPPORT_PRODUCT is not the same for all versions, use VERSION_ID
instead.

Signed-off-by: Roxana Nicolescu <rnicolescu@ciq.com>
Copilot AI review requested due to automatic review settings May 22, 2026 15:05
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates kernel_install_dep.sh to detect Rocky major versions using /etc/os-release’s VERSION_ID (major component) instead of ROCKY_SUPPORT_PRODUCT, avoiding mismatches across Rocky minor versions (e.g., 8.6).

Changes:

  • Switch distro/major-version branching from ROCKY_SUPPORT_PRODUCT to ${VERSION_ID%%.*}.
  • Map detected major versions (8/9/10) to the corresponding kselftest dependency install functions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread kernel_install_dep.sh
Copy link
Copy Markdown
Collaborator

@bmastbergen bmastbergen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥌

@roxanan1996 roxanan1996 merged commit d8589c6 into mainline May 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants