From d13cb70c659e6b2e14193f95ab1f2afbe4d42a46 Mon Sep 17 00:00:00 2001 From: hanwenli Date: Wed, 30 Jul 2025 11:18:46 -0700 Subject: [PATCH] Use major version for rocky in cinc-installer.sh This commit fixes a bug from https://github.com/aws/aws-parallelcluster-cookbook/pull/2992 This commit makes the code behave similar between rocky and el(redhat) Signed-off-by: Hanwen --- util/cinc-install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/util/cinc-install.sh b/util/cinc-install.sh index 30d56c997f..1451743f05 100644 --- a/util/cinc-install.sh +++ b/util/cinc-install.sh @@ -579,6 +579,12 @@ case $platform in # FIXME: "el" is deprecated, should use "redhat" platform_version=$major_version ;; + # Warning: the official script from CINC doesn't use major version for rocky, + # which is wrong according to the directory structure: https://downloads.cinc.sh/files/stable/cinc/18.7.10/rocky/ + # The behavior should be the same as "el" above. Therefore, the following rocky section is manually added. + "rocky") + platform_version=$major_version + ;; "debian") if test "x$major_version" = "x5"; then # This is here for potential back-compat.