def METHOD_NAME(self) -> bool:
    posix_os: Posix = cast(Posix, self.node.os)
    if posix_os.is_package_in_repo("mdadm"):
        posix_os.install_packages("mdadm")
    else:
        self._install_from_src()
    return self._check_exists()