From a2543f8285f13c31122361e5a4cfc6953a0c020e Mon Sep 17 00:00:00 2001 From: cxhong Date: Mon, 27 Jan 2020 15:44:40 -0500 Subject: [PATCH] Failed to run otherpkgs for rhel8.1.0 service node --- xCAT/postscripts/ospkgs | 3 +++ xCAT/postscripts/otherpkgs | 1 + 2 files changed, 4 insertions(+) diff --git a/xCAT/postscripts/ospkgs b/xCAT/postscripts/ospkgs index dfe18b891..c41c86097 100755 --- a/xCAT/postscripts/ospkgs +++ b/xCAT/postscripts/ospkgs @@ -23,6 +23,8 @@ #=cut #------------------------------------------------------------------------------- +#set -x + if [ -n "$LOGLABEL" ]; then log_label=$LOGLABEL else @@ -891,6 +893,7 @@ else fi echo "enabled=1" >> $REPOFILE echo "gpgcheck=0" >> $REPOFILE + echo "skip_if_unavailable=True" >> $REPOFILE fi i=$((i+1)) done diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index f595b1dc1..38a535a98 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -573,6 +573,7 @@ elif ( ((pmatch "$OSVER" "rhel*") || (pmatch "$OSVER" "centos*") || (pmatch "$OS fi echo "enabled=1" >> $REPOFILE echo "gpgcheck=0" >> $REPOFILE + echo "skip_if_unavailable=True" >> $REPOFILE fi i=$((i+1)) done