]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: Tolerate a missing lsb_release 1854/head
authorZack Cerza <zack@redhat.com>
Mon, 12 Jun 2023 21:48:34 +0000 (15:48 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 12 Jun 2023 21:48:34 +0000 (15:48 -0600)
This fixes the lack of support for CentOS 9.Stream

Signed-off-by: Zack Cerza <zack@redhat.com>
bootstrap

index 123a2bb3bc895192da78d82ed89e8ef02aaad27c..2906af8819b26fb1ce591ebff82c94cdd41fe7c8 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -36,7 +36,13 @@ VENV=${VENV:-"virtualenv"}
 
 case "$(uname -s)" in
 Linux)
-    case "$(lsb_release --id --short)" in
+    if command -v lsb_release; then
+        OS=$(lsb_release --id --short)
+    else
+        . /etc/os-release
+        OS=$(echo $NAME | tr -d ' ')
+    fi
+    case "$OS" in
     Ubuntu|Debian|LinuxMint)
         deps=(qemu-utils python3-dev libssl-dev python3-pip python3-wheel $PYTHON-venv libev-dev libvirt-dev libffi-dev libyaml-dev)
         for package in ${deps[@]}; do
@@ -81,7 +87,7 @@ Linux)
         fi
         ;;
     CentOSStream)
-        deps=(python3-pip python39-devel mariadb-devel libev-devel libvirt-devel libffi-devel)
+        deps=(python3-pip python3-devel)
         for package in ${deps[@]}; do
           if ! rpm -q --whatprovides $package ; then
               missing="${missing:+$missing }$package"