utils: kata-manager: Fix "Cannot determine download URL" issue

The archive names for x86_64 [Kata releases](https://github.com/kata-containers/kata-containers/releases)
used to include the tag `x86_64`, but that has now been changed to
`amd64`, which unfortunately broke `kata-manager.sh`:

```
kata-static-3.1.3-x86_64.tar.xz
                  ~~~~~~
                  expected

kata-static-3.2.0-alpha3-x86_64.tar.xz
                         ~~~~~~
                         expected

kata-static-3.2.0-alpha4-amd64.tar.xz
                         ~~~~~
                         changed
```

Fixes: #8321.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt 2023-10-26 15:27:37 +01:00
parent 59bd534827
commit 2ac7ac1dd2

View File

@ -145,6 +145,7 @@ github_get_release_file_url()
local arch
arch=$(uname -m)
[ "$arch" = "x86_64" ] && arch="amd64"
local regex=""
@ -154,7 +155,6 @@ github_get_release_file_url()
;;
*containerd*)
[ "$arch" = "x86_64" ] && arch="amd64"
regex="containerd-.*-linux-${arch}.tar.gz"
;;