vm_setup: Add dedicated source for yum

Change-Id: I4669573d9fc28fe4c1bb3614abc45f0a83e7399c
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/2522
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Michal Berger 2020-05-18 16:53:22 +02:00 committed by Tomasz Zawadzki
parent 4a04fc1976
commit 1780a09847

View File

@ -0,0 +1,67 @@
package_manager=yum
upgrade() {
sudo "$package_manager" upgrade -y
}
install() {
(($#)) || return 0
sudo "$package_manager" install -y "$@"
}
packages=(
pciutils
valgrind
jq
nvme-cli
gdb
fio
librbd-devel
kernel-devel
gflags-devel
libasan
libubsan
autoconf
automake
libtool
libmount-devel
iscsi-initiator-utils
isns-utils-devel pmempool
perl-open
glib2-devel
pixman-devel
astyle-devel
elfutils
elfutils-libelf-devel
flex
bison
targetcli
perl-Switch
librdmacm-utils
libibverbs-utils
gdisk
socat
sshfs
sshpass
python3-pandas
rpm-build
iptables
clang-analyzer
bc
kernel-modules-extra
systemd-devel
python3
wget
)
pre_install() {
if [[ $ID == centos ]] && (( VERSION_ID == 8 )); then
"$package_manager" update -y --refresh
fi
install nbd || {
wget -O nbd.rpm https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/nbd-3.14-2.el7.x86_64.rpm
install nbd.rpm
}
}