From 6ee4bdab18418319949e479d89bc97fa7272ec76 Mon Sep 17 00:00:00 2001 From: Maciej Wawryk Date: Thu, 26 Mar 2020 16:35:16 +0100 Subject: [PATCH] test/vm_setup: Add nbd install for Centos8 Signed-off-by: Maciej Wawryk Change-Id: Ie687d29841ed41c88e26cef803bd23be8c009833 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1499 Tested-by: SPDK CI Jenkins Reviewed-by: Karol Latecki Reviewed-by: Jim Harris Reviewed-by: Tomasz Zawadzki Reviewed-by: Darek Stojaczyk --- test/common/config/vm_setup.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/common/config/vm_setup.sh b/test/common/config/vm_setup.sh index 2638e022f6..94bf0fd148 100755 --- a/test/common/config/vm_setup.sh +++ b/test/common/config/vm_setup.sh @@ -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