Merge pull request #9671 from bikesheddev/fix/kata-deploy-unbound-variable

fix: kata-deploy.sh VERSION_ID unbound-variable
This commit is contained in:
Fabiano Fidêncio 2024-05-20 17:22:55 +02:00 committed by GitHub
commit b8b3bcc492
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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