From 285be010ad53d55927a03ddf776d72e554cec3b8 Mon Sep 17 00:00:00 2001 From: Jiri Jaburek Date: Thu, 24 Oct 2024 22:26:56 +0200 Subject: [PATCH] build cs9 datastreams when running on CentOS Stream Signed-off-by: Jiri Jaburek --- plans/main.fmf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plans/main.fmf b/plans/main.fmf index b926864..45074a5 100644 --- a/plans/main.fmf +++ b/plans/main.fmf @@ -46,11 +46,13 @@ adjust: . "$TMT_PLAN_ENVIRONMENT_FILE" # not done automatically [ -z "$CONTEST_CONTENT" ] && exit 0 cd "$CONTEST_CONTENT" + distro=$(. /etc/os-release && echo "$ID") + [ "$distro" = "centos" ] && derivatives=--derivatives || derivatives= major=$(. /etc/os-release && echo "${VERSION_ID%%.*}") # already built [ -e "build/ssg-rhel${major}-ds.xml" ] && exit 0 dnf -y builddep --spec scap-security-guide.spec - ./build_product --playbook-per-rule "rhel${major}" + ./build_product --playbook-per-rule $derivatives "rhel${major}" - prepare+: - how: shell