xref: /spdk/test/common/config/pkgdep/os/rhel (revision 2172c432cfdaecc5a279d64e37c6b51e794683c1)
1pre_install() {
2	if [[ $INTSALL_TSOCKS == true ]]; then
3		# currently, tsocks package is retired in fedora 31, so don't exit in case
4		# installation failed
5		# FIXME: Review when fedora starts to successfully build this package again.
6		install tsocks || echo "Installation of the tsocks package failed, proxy may not be available"
7	fi
8        if [[ $ID == centos ]] && (( VERSION_ID == 8 )); then
9                sudo "$package_manager" update -y --refresh
10        fi
11
12	install nbd || {
13		install wget
14		wget -O nbd.rpm https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/nbd-3.14-2.el7.x86_64.rpm
15		install nbd.rpm
16	}
17}
18