mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 04:10:46 +00:00
fix issue [FVT]:enhancement: give correct postscript and postbootscript when the template is onieswitch
This commit is contained in:
@ -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 ()
|
||||
|
@ -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`
|
||||
|
@ -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."
|
||||
|
Reference in New Issue
Block a user