From e376ac6c43ae568d6d10a0314b20e0e484f54267 Mon Sep 17 00:00:00 2001 From: bernhardloos Date: Wed, 11 Dec 2024 18:37:08 +0100 Subject: [PATCH] fix entrypoint.sh for OKD SCOS builds Builds of OKD starting with 4.16 are based on CentOS Stream but the images identify as centos in /etc/os-release: NAME="CentOS Stream" VERSION="9" ID="centos" VERSION_ID="9" See also https://github.com/okd-project/okd/discussions/2060 --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 34bb7922..3e181d13 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -17,7 +17,7 @@ case "${ID}" in rhcos|scos) rhelmajor=$(echo ${RHEL_VERSION} | cut -f 1 -d .) ;; - rhel) + rhel|centos) rhelmajor=$(echo "${VERSION_ID}" | cut -f 1 -d .) ;; fedora)