mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
Merge pull request #9671 from bikesheddev/fix/kata-deploy-unbound-variable
fix: kata-deploy.sh VERSION_ID unbound-variable
This commit is contained in:
commit
b8b3bcc492
@ -250,6 +250,7 @@ function install_artifacts() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if grep -q "tdx" <<< "$shim"; then
|
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
|
source /host/etc/os-release || source /host/usr/lib/os-release
|
||||||
case ${ID} in
|
case ${ID} in
|
||||||
ubuntu)
|
ubuntu)
|
||||||
|
Loading…
Reference in New Issue
Block a user