This is an automated email from the ASF dual-hosted git repository.

iwasakims pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git


The following commit(s) were added to refs/heads/master by this push:
     new 7702daf  BIGTOP-3634 Fix centos local repo functionality (#856)
7702daf is described below

commit 7702daf1cf0e3534e788fcf659c3c0060f1cd987
Author: cheelio <[email protected]>
AuthorDate: Tue Jan 25 06:32:11 2022 +0100

    BIGTOP-3634 Fix centos local repo functionality (#856)
---
 provisioner/utils/setup-env-centos.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/provisioner/utils/setup-env-centos.sh 
b/provisioner/utils/setup-env-centos.sh
index 55dcdad..3d097a5 100755
--- a/provisioner/utils/setup-env-centos.sh
+++ b/provisioner/utils/setup-env-centos.sh
@@ -23,7 +23,7 @@ sed -ie 's#HOSTNAME=.*$#HOSTNAME='`hostname -f`'#' 
/etc/sysconfig/network
 
 # Setup rng-tools to improve virtual machine entropy performance.
 # The poor entropy performance will cause kerberos provisioning failed.
-yum -y install rng-tools
+yum -y install rng-tools yum-priorities
 if [ -x /usr/bin/systemctl ] ; then
     sed -i 's@ExecStart=/sbin/rngd -f@ExecStart=/sbin/rngd -f -r 
/dev/urandom@' /usr/lib/systemd/system/rngd.service
     systemctl daemon-reload
@@ -51,7 +51,7 @@ if [ $enable_local_repo == "true" ]; then
 
     sudo yum-config-manager --add-repo file:///bigtop-home/output
     sudo echo "gpgcheck=0" >> /etc/yum.repos.d/bigtop-home_output.repo
-    sudo echo "priority=10" >> /etc/yum.repos.d/bigtop-home_output.repo
+    sudo echo "priority=9" >> /etc/yum.repos.d/bigtop-home_output.repo
 else
     echo "local yum = $enable_local_repo ; NOT Enabling local yum.  Packages 
will be pulled from remote..."
 fi

Reply via email to