Skip to content

Commit

Permalink
Merge pull request ceph#1787 from kamoltat/wip-ksirivad-boostrap-cent…
Browse files Browse the repository at this point in the history
…osstream

boostrap: Add support for CentOSStream
  • Loading branch information
kamoltat authored Aug 25, 2022
2 parents b1d387f + 971a849 commit c525e44
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,26 @@ Linux)
fi
fi
;;
CentOSStream)
deps=(python3-pip python39-devel mariadb-devel libev-devel libvirt-devel libffi-devel)
for package in ${deps[@]}; do
if [ "$(rpm -q $package)" == "package $package is not installed" ]; then
missing="${missing:+$missing }$package"
fi
done
if [ -n "$missing" ]; then
echo "$0: missing required packages:" 1>&2
echo "$missing"
if [ "$install" = true ]; then
echo "Installing missing packages..."
sudo yum -y install $missing
else
echo "Please install missing packages or run './bootstrap install' if you have sudo"
echo "sudo yum -y install $missing"
exit 1
fi
fi
;;
Fedora)
deps=(python3-pip python3-devel libev-devel libvirt-devel libffi-devel)
for package in ${deps[@]}; do
Expand Down

0 comments on commit c525e44

Please sign in to comment.