]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: Drop lsb_release support uv 2081/head
authorZack Cerza <zack@cerza.org>
Tue, 16 Sep 2025 22:57:13 +0000 (16:57 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 7 Nov 2025 20:02:44 +0000 (13:02 -0700)
And also drop an unnecessary tr invocation.

Signed-off-by: Zack Cerza <zack@cerza.org>
bootstrap

index a85fe1339bc03434f045a1a624aa4cae03e97a63..8453d83a31d6c3c0085dbe11b921c06ef872b25a 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -13,12 +13,8 @@ fi
 
 case "$(uname -s)" in
 Linux)
-    if command -v lsb_release > /dev/null; then
-        OS=$(lsb_release --id --short)
-    else
-        . /etc/os-release
-        OS=$(echo "$NAME" | tr -d ' ')
-    fi
+    . /etc/os-release
+    OS="${NAME// /}"
     case "$OS" in
     Ubuntu|Debian|LinuxMint)
         deps=(qemu-utils python3-dev libssl-dev libev-dev libvirt-dev libffi-dev libyaml-dev pipx build-essential jq curl)