diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index b54c5e23f..d39334f64 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -25,6 +25,13 @@ #enable debug #set -x +if cat /etc/os-release |grep -i -e "^NAME=[ \"']*Cumulus Linux[ \"']*$" >/dev/null 2>&1 ; then + #TODO + echo "Cumulus OS is not supported yet, nothing to do..." + logger -t xcat -p local4.info "Cumulus OS is not supported yet, nothing to do..." + exit 0 +fi + # pmatch determines if 1st argument string is matched by 2nd argument pattern pmatch () diff --git a/xCAT/postscripts/remoteshell b/xCAT/postscripts/remoteshell index bf0be9dd0..c2023426a 100755 --- a/xCAT/postscripts/remoteshell +++ b/xCAT/postscripts/remoteshell @@ -12,6 +12,12 @@ # # if on the Management Node, exit +if cat /etc/os-release |grep -i -e "^NAME=[ \"']*Cumulus Linux[ \"']*$" >/dev/null 2>&1 ; then + #TODO + echo "Cumulus OS is not supported yet, nothing to do..." + logger -t xcat -p local4.info "Cumulus OS is not supported yet, nothing to do..." + exit 0 +fi if [ "$(uname -s|tr 'A-Z' 'a-z')" = "linux" ];then str_dir_name=`dirname $0` diff --git a/xCAT/postscripts/syncfiles b/xCAT/postscripts/syncfiles index 488571e2a..0875a5388 100644 --- a/xCAT/postscripts/syncfiles +++ b/xCAT/postscripts/syncfiles @@ -7,6 +7,13 @@ # ##################################################### +if cat /etc/os-release |grep -i -e "^NAME=[ \"']*Cumulus Linux[ \"']*$" >/dev/null 2>&1 ; then + #TODO + echo "Cumulus OS is not supported yet, nothing to do..." + logger -t xcat -p local4.info "Cumulus OS is not supported yet, nothing to do..." + exit 0 +fi + # do nothing when UPDATENODE=1 because it is done from the top down if [ -n "$UPDATENODE" ] && [ $UPDATENODE -eq 1 ]; then #echo " Did not sync any files. Use updatenode -F to sync the files." diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index 4c4006ae7..d55364e00 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -148,6 +148,9 @@ config_rsyslog_V8() conf_file="/etc/rsyslog.conf" remoteconf="/etc/rsyslog.d/remote.conf" + #for Cumulus OS inside ONIE switches + cat /etc/os-release |grep -i -e "^NAME=[ \"']*Cumulus Linux[ \"']*$" >/dev/null 2>&1 && remoteconf="/etc/rsyslog.d/99-syslog.conf" + # If this is a Management Node or Service Node, then it will be receiving syslog entries from the # compute nodes. Management Node is receiving from Service Nodes and possibly compute nodes. # They will all be put in /var/log/messages