Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap: add AlmaLinux and RockyLinux #1970

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,27 @@ Linux)
fi
fi
;;
AlmaLinux|RockyLinux)
PYTHON=python3.12
deps=($PYTHON-pip $PYTHON-devel libev-devel libvirt-devel libffi-devel)
for package in ${deps[@]}; do
if ! rpm -q --whatprovides $package; 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|FedoraLinux)
PYTHON=python3.12
deps=($PYTHON-pip $PYTHON-devel)
Expand Down
Loading