@@ -29,10 +29,10 @@ set -e
2929set -x
3030
3131# enable repositories
32- yum -y install centos-release-gluster yum-utils centos-release-ceph
32+ dnf -y install centos-release-gluster yum-utils centos-release-ceph
3333
3434# make sure rpcbind is running
35- yum -y install rpcbind
35+ dnf -y install rpcbind
3636systemctl start rpcbind
3737
3838# CentOS 7.4.1708 has an SELinux issue that prevents NFS-Ganesha from creating
4949 yum-config-manager --add-repo=${YUM_REPO}
5050
5151 # install the latest version of gluster
52- yum -y install nfs-ganesha nfs-ganesha-gluster glusterfs-ganesha
52+ dnf -y install nfs-ganesha nfs-ganesha-gluster glusterfs-ganesha
5353
5454 # start nfs-ganesha service
5555 if ! systemctl start nfs-ganesha
7878 yum install --enablerepo=powertools -y ${BUILDREQUIRES_EXTRA}
7979 yum -y install selinux-policy-devel sqlite
8080 elif [ " ${CENTOS_VERSION} " = " 9s" ]; then
81- yum install -y ${BASE_PACKAGES} libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build libgfapi-devel xfsprogs-devel
82- yum install --enablerepo=crb -y ${BUILDREQUIRES_EXTRA}
83- yum -y install selinux-policy-devel sqlite
81+ dnf install -y ${BASE_PACKAGES} libacl-devel libblkid-devel libcap-devel redhat-rpm-config rpm-build libgfapi-devel xfsprogs-devel
82+ dnf install --enablerepo=crb -y ${BUILDREQUIRES_EXTRA}
83+ dnf -y install selinux-policy-devel sqlite
8484 fi
8585
8686 git init " ${GIT_REPO} "
9898 git checkout -b " ${GERRIT_REFSPEC} " FETCH_HEAD
9999
100100 # update libntirpc
101- git submodule update --recursive --init || git submodule sync
101+ git submodule update --recursive --init || git submodule sync --recursive
102102
103103 mkdir build
104104 pushd build
105105
106- sleep 30000
106+ # FixMe: [psathyan] Not sure why we have a large sleep here.
107+ sleep 30000
107108
108109 cmake -DCMAKE_BUILD_TYPE=Maintainer -DUSE_FSAL_GLUSTER=ON ../src
109110 make dist
114115 ntirpc_version=$( rpm -q --qf ' %{VERSION}-%{RELEASE}' -p ${rpm_arch} /libntirpc-devel* .rpm)
115116 ntirpc_rpm=${rpm_arch} /libntirpc-${ntirpc_version} .${rpm_arch} .rpm
116117 fi
117- yum -y install {x86_64,noarch}/* .rpm
118+ dnf -y install {x86_64,noarch}/* .rpm
118119
119120 # start nfs-ganesha service with an empty configuration
120121 echo " NFSv4 { Graceless = true; }" > /etc/ganesha/ganesha.conf
130131
131132# create and start gluster volume
132133if [ " ${CENTOS_VERSION} " = " 7" ]; then
133- yum -y install glusterfs-server
134+ yum -y install glusterfs-server
134135elif [ " ${CENTOS_VERSION} " = " 8s" ]; then
135- yum -y install --enablerepo=powertools glusterfs-server
136+ yum -y install --enablerepo=powertools glusterfs-server
136137elif [ " ${CENTOS_VERSION} " = " 9s" ]; then
137- yum -y install --enablerepo=crb glusterfs-server
138+ dnf -y install --enablerepo=crb glusterfs-server
138139fi
139140
140141systemctl start glusterd
@@ -165,7 +166,7 @@ umount /mnt
165166# Export the volume
166167mkdir -p /usr/libexec/ganesha
167168cd /usr/libexec/ganesha
168- yum -y install wget
169+ dnf -y install wget
169170wget https://raw.githubusercontent.com/gluster/glusterfs/release-3.10/extras/ganesha/scripts/create-export-ganesha.sh
170171wget https://raw.githubusercontent.com/gluster/glusterfs/release-3.10/extras/ganesha/scripts/dbus-send.sh
171172chmod 755 create-export-ganesha.sh dbus-send.sh
0 commit comments