Skip to content

Commit d8589c6

Browse files
committed
kernel_install_dep.sh: Use VERSION_ID to differentate between major versions
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>
1 parent 7b1bf0e commit d8589c6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

kernel_install_dep.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,14 +210,14 @@ install_kselftest_deps_10() {
210210
wheel
211211
}
212212

213-
case "$ROCKY_SUPPORT_PRODUCT" in
214-
Rocky-Linux-10)
213+
case "${VERSION_ID%%.*}" in
214+
10)
215215
install_kselftest_deps_10
216216
;;
217-
Rocky-Linux-9)
217+
9)
218218
install_kselftest_deps_9
219219
;;
220-
Rocky-Linux-8)
220+
8)
221221
install_kselftest_deps_8
222222
;;
223223
esac

0 commit comments

Comments
 (0)