mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-20 08:18:24 +00:00
tests: kbs: Enable cli installation also on CentOS
One of our machines is running CentOS 9 Stream, and we could easily verify that we can build and install the kbs client there, thus we're expanding the installation script to also support CentOS 9 Stream. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This commit is contained in:
@@ -125,16 +125,26 @@ kbs_set_resource_from_file() {
|
|||||||
kbs_install_cli() {
|
kbs_install_cli() {
|
||||||
command -v kbs-client >/dev/null && return
|
command -v kbs-client >/dev/null && return
|
||||||
|
|
||||||
if ! command -v apt >/dev/null; then
|
source /etc/os-release || source /usr/lib/os-release
|
||||||
>&2 echo "ERROR: running on unsupported distro"
|
case "${ID}" in
|
||||||
return 1
|
ubuntu)
|
||||||
fi
|
|
||||||
|
|
||||||
local pkgs="build-essential"
|
local pkgs="build-essential"
|
||||||
|
|
||||||
sudo apt-get update -y
|
sudo apt-get update -y
|
||||||
# shellcheck disable=2086
|
# shellcheck disable=2086
|
||||||
sudo apt-get install -y $pkgs
|
sudo apt-get install -y $pkgs
|
||||||
|
;;
|
||||||
|
centos)
|
||||||
|
local pkgs="make"
|
||||||
|
|
||||||
|
# shellcheck disable=2086
|
||||||
|
sudo dnf install -y $pkgs
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
>&2 echo "ERROR: running on unsupported distro"
|
||||||
|
return 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Mininum required version to build the client (read from versions.yaml)
|
# Mininum required version to build the client (read from versions.yaml)
|
||||||
local rust_version
|
local rust_version
|
||||||
|
Reference in New Issue
Block a user