From 3b796c657917f8083c3371bafa23009389844dff Mon Sep 17 00:00:00 2001 From: Harshit Gupta Date: Thu, 16 Apr 2026 15:51:53 +0000 Subject: [PATCH] rootfs: mariner: suppress condition check failure errors Avoid returning failure from sourced scripts when condition check evaluates to false. Signed-off-by: Harshit Gupta --- tools/osbuilder/rootfs-builder/cbl-mariner/config.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/osbuilder/rootfs-builder/cbl-mariner/config.sh b/tools/osbuilder/rootfs-builder/cbl-mariner/config.sh index 23694f3a3b..7043fa5994 100644 --- a/tools/osbuilder/rootfs-builder/cbl-mariner/config.sh +++ b/tools/osbuilder/rootfs-builder/cbl-mariner/config.sh @@ -11,6 +11,6 @@ OS_VERSION=${OS_VERSION:-3.0} LIBC="gnu" PACKAGES="kata-packages-uvm" # shellcheck disable=SC2154 -[[ "${AGENT_INIT}" = no ]] && PACKAGES+=" systemd" +if [[ "${AGENT_INIT}" = "no" ]]; then PACKAGES+=" systemd"; fi # shellcheck disable=SC2154 -[[ "${SECCOMP}" = yes ]] && PACKAGES+=" libseccomp" +if [[ "${SECCOMP}" = "yes" ]]; then PACKAGES+=" libseccomp"; fi