From 5667a75fa22d63df26e9be1a5e183a48437c925c Mon Sep 17 00:00:00 2001 From: nazunalika Date: Tue, 21 Jun 2022 20:29:07 -0700 Subject: [PATCH] fix os release detection --- func/core/pkg_release/30-os-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/func/core/pkg_release/30-os-release.sh b/func/core/pkg_release/30-os-release.sh index 7b6b61d..65b9ca7 100755 --- a/func/core/pkg_release/30-os-release.sh +++ b/func/core/pkg_release/30-os-release.sh @@ -5,7 +5,7 @@ r_log "rocky" "Verify support directives" for s in NAME=\"Rocky\ Linux\" \ ID=\"rocky\" \ ROCKY_SUPPORT_PRODUCT=\"Rocky-Linux-$RL_VER\" \ - ROCKY_SUPPORT_PRODUCT_VERSION=\"$RL_VER\"; do + ROCKY_SUPPORT_PRODUCT_VERSION=\"$RL_VER\..*\"; do if ! grep -q "$s" /etc/os-release; then r_log "rocky" "Missing string ($s) in /etc/os-release" r_checkExitStatus 1