From d32833e9f1c8781fc1b3b833fbb20e79e88d6f1a Mon Sep 17 00:00:00 2001 From: yangsbj Date: Wed, 20 Mar 2019 03:30:16 -0400 Subject: [PATCH] add skip_if_unavailable option into repo conf to avoid yum operation abort due to broken repo --- xCAT/postscripts/otherpkgs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index 4138e52d8..1161d1836 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -637,6 +637,7 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do echo "baseurl=$url" >> $REPOFILE echo "enabled=1" >> $REPOFILE echo "gpgcheck=0" >> $REPOFILE + echo "skip_if_unavailable=True" >> $REPOFILE elif [ $hasapt -eq 1 ] ; then REPOFILE="$repo_base/xCAT-otherpkgs${urlrepoindex}.list" @@ -741,6 +742,7 @@ while [ $op_index -le $OTHERPKGS_INDEX ]; do fi echo "enabled=1" >> $REPOFILE echo "gpgcheck=0" >> $REPOFILE + echo "skip_if_unavailable=True" >> $REPOFILE if [ $hasyum -eq 1 ]; then yum clean all fi