Also, shuffle DAOS pieces a bit to keep repo handling in one place. Also, also switch ceph repo to an actively supported release, common and available for both centos|rocky 8|9 (i.e. pacific). Change-Id: Idb19e4a5ff80770c7d6f9e6db85f983e163958e6 Signed-off-by: Michal Berger <michal.berger@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17661 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot
99 lines
1.6 KiB
Plaintext
99 lines
1.6 KiB
Plaintext
package_manager=yum
|
|
|
|
upgrade() {
|
|
sudo "$package_manager" upgrade -y
|
|
}
|
|
|
|
install() {
|
|
(($#)) || return 0
|
|
|
|
sudo "$package_manager" install -y "$@"
|
|
}
|
|
|
|
packages=(
|
|
astyle-devel
|
|
autoconf
|
|
automake
|
|
bc
|
|
bison
|
|
ceph
|
|
clang-analyzer
|
|
elfutils
|
|
elfutils-libelf-devel
|
|
fio
|
|
flex
|
|
gdb
|
|
gdisk
|
|
gflags-devel
|
|
glib2-devel
|
|
iptables
|
|
iscsi-initiator-utils
|
|
isns-utils-devel
|
|
jq
|
|
kernel-devel
|
|
kernel-modules-extra
|
|
libabigail
|
|
libaio-devel
|
|
libasan
|
|
libibverbs-utils
|
|
libmount-devel
|
|
librdmacm-utils
|
|
libtool
|
|
libubsan
|
|
llvm
|
|
nvme-cli
|
|
openssl
|
|
pciutils
|
|
perl-open
|
|
perl-Switch
|
|
pixman-devel
|
|
pmempool
|
|
python3
|
|
python3-pandas
|
|
rpm-build
|
|
rpmdevtools
|
|
ruby-devel
|
|
smartmontools
|
|
socat
|
|
sshfs
|
|
systemd-devel
|
|
targetcli
|
|
valgrind
|
|
wget
|
|
xfsprogs
|
|
)
|
|
|
|
if [[ $OSID != centos && $OSID != rocky ]]; then
|
|
packages+=(btrfs-progs)
|
|
packages+=(avahi)
|
|
packages+=(avahi-tools)
|
|
elif [[ $OSID == rocky ]]; then
|
|
# 8 and 9 comes with a kernel which does not support btrfs
|
|
packages+=(avahi)
|
|
packages+=(avahi-tools) # from the devel repo
|
|
elif [[ $OSID == centos ]]; then
|
|
packages+=(avahi)
|
|
# 8 comes with a kernel which does not support btrfs.
|
|
# 8 does not come with any common repos that include avahi-tools.
|
|
if [[ $OSVERSION == 7* ]]; then
|
|
packages+=(avahi-tools)
|
|
packages+=(btrfs-progs)
|
|
fi
|
|
fi
|
|
|
|
if [[ $OSID == centos && $OSVERSION == 8* ]]; then
|
|
packages+=("https://rpmfind.net/linux/centos/8-stream/AppStream/x86_64/os/Packages/sshpass-1.09-4.el8.x86_64.rpm")
|
|
else
|
|
packages+=(sshpass)
|
|
fi
|
|
|
|
if [[ $OSID == fedora ]] && ((OSVERSION == 34)); then
|
|
packages+=(bpftrace)
|
|
fi
|
|
|
|
if [[ $OSID == fedora ]] && ((OSVERSION >= 37)); then
|
|
packages+=(iproute-tc)
|
|
fi
|
|
|
|
pre_install() { :; }
|