diff --git a/lisa/tools/lsblk.py b/lisa/tools/lsblk.py index c2bc0bc0c8..e5640b360d 100644 --- a/lisa/tools/lsblk.py +++ b/lisa/tools/lsblk.py @@ -126,10 +126,10 @@ def can_install(self) -> bool: return True def _install(self) -> bool: - if isinstance(self.node.os, Posix): - self.node.os.install_packages("util-linux") - elif isinstance(self.node.os, FreeBSD): + if isinstance(self.node.os, FreeBSD): self.node.os.install_packages("lsblk") + elif isinstance(self.node.os, Posix): + self.node.os.install_packages("util-linux") else: raise LisaException( f"tool {self.command} can't be installed in distro {self.node.os.name}."