]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: Drop lsb_release support
authorZack Cerza <zack@cerza.org>
Tue, 16 Sep 2025 22:57:13 +0000 (16:57 -0600)
committerKyr Shatskyy <kyrylo.shatskyy@clyso.com>
Wed, 22 Apr 2026 19:36:23 +0000 (21:36 +0200)
And also drop an unnecessary tr invocation.

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

index 8ec859f2989d2e860217d732c8f4aef8176d3805..03e765856b12495889fd2b8ccf650be0fbd3689f 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)