2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 09:13:08 +00:00

add skip_if_unavailable option into repo conf to avoid yum operation abort due to broken repo

This commit is contained in:
yangsbj 2019-03-20 03:30:16 -04:00
parent a35f34830c
commit d32833e9f1

View File

@ -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