pre_install() {
	if [[ $INTSALL_TSOCKS == true ]]; then
		# currently, tsocks package is retired in fedora 31, so don't exit in case
		# installation failed
		# FIXME: Review when fedora starts to successfully build this package again.
		install tsocks || echo "Installation of the tsocks package failed, proxy may not be available"
	fi
        if [[ $ID == centos ]] && (( VERSION_ID == 8 )); then
                sudo "$package_manager" update -y --refresh
        fi

	install nbd || {
		install wget
		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
	}
}
