You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by iw...@apache.org on 2022/01/25 05:34:00 UTC

[bigtop] branch branch-3.0 updated: BIGTOP-3634 Fix centos local repo functionality (#856)

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

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


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

commit 115e72ef12e2aa3ededef9fa4227f9854e4c1d8f
Author: cheelio <ch...@gmail.com>
AuthorDate: Tue Jan 25 06:32:11 2022 +0100

    BIGTOP-3634 Fix centos local repo functionality (#856)
    
    
    (cherry picked from commit 7702daf1cf0e3534e788fcf659c3c0060f1cd987)
---
 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