From 3327fa3073f9d33606a47741013e2a8ec4d69813 Mon Sep 17 00:00:00 2001 From: Vincent Shen Date: Mon, 21 Apr 2025 13:02:11 -0700 Subject: [PATCH] Enhance RHCOS checks to include CoreOS variant for 4.19 Signed-off-by: Vincent Shen --- shared/checks/oval/installed_OS_is_rhcos4.xml | 35 +++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/shared/checks/oval/installed_OS_is_rhcos4.xml b/shared/checks/oval/installed_OS_is_rhcos4.xml index 632df28de3f8..9627c38978a7 100644 --- a/shared/checks/oval/installed_OS_is_rhcos4.xml +++ b/shared/checks/oval/installed_OS_is_rhcos4.xml @@ -9,11 +9,15 @@ The operating system installed on the system is Red Hat Enterprise Linux CoreOS release 4 - + - + + + + + @@ -30,6 +34,33 @@ rhcos + + + + + + /etc/os-release + ^VARIANT_ID=(\S+)$ + 1 + + + coreos + + + + + + + + /etc/os-release + ^VERSION_ID="(\d+\.\d+)"$ + 1 + + + ^9\. + + +