test/vm_setup: Add nbd install for Centos8

Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com>
Change-Id: Ie687d29841ed41c88e26cef803bd23be8c009833
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1499
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
Maciej Wawryk 2020-03-26 16:35:16 +01:00 committed by Tomasz Zawadzki
parent 6fed4f6110
commit 6ee4bdab18

View File

@ -518,8 +518,13 @@ if $INSTALL; then
bc \
kernel-modules-extra \
systemd-devel \
python3 \
nbd
python3
sudo yum install -y 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
sudo yum install -y nbd.rpm
}
elif [ $PACKAGEMNG == 'dnf' ]; then
if echo $CONF | grep -q tsocks; then
# currently, tsocks package is retired in fedora 31, so don't exit in case