diff --git a/tools/packaging/kata-deploy/scripts/kata-deploy.sh b/tools/packaging/kata-deploy/scripts/kata-deploy.sh index 6b795b1c6e..6c5f661b85 100755 --- a/tools/packaging/kata-deploy/scripts/kata-deploy.sh +++ b/tools/packaging/kata-deploy/scripts/kata-deploy.sh @@ -250,6 +250,7 @@ function install_artifacts() { fi if grep -q "tdx" <<< "$shim"; then + VERSION_ID=version_unset # VERSION_ID may be unset, see https://www.freedesktop.org/software/systemd/man/latest/os-release.html#Notes source /host/etc/os-release || source /host/usr/lib/os-release case ${ID} in ubuntu)