rootfs: mariner: suppress condition check failure errors

Avoid returning failure from sourced scripts when condition check evaluates
to false.

Signed-off-by: Harshit Gupta <guptaharshit@microsoft.com>
This commit is contained in:
Harshit Gupta
2026-04-16 15:51:53 +00:00
parent 5f59e20032
commit 3b796c6579

View File

@@ -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