From ac4d9da56abb1983c3035928bfbf5bee162850c1 Mon Sep 17 00:00:00 2001 From: bybai Date: Fri, 3 Mar 2017 02:44:01 -0500 Subject: [PATCH] fix 2579 syncfile is in default node definition, but statelite does not support syncfile --- xCAT/postscripts/syncfiles | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xCAT/postscripts/syncfiles b/xCAT/postscripts/syncfiles index ebf34a7cc..5ce495dc2 100644 --- a/xCAT/postscripts/syncfiles +++ b/xCAT/postscripts/syncfiles @@ -7,6 +7,13 @@ # ##################################################### +#statelite does not support syncfiles +if [ -d /.statelite ]; then + echo "Statelite does not support syncfiles, nothing to do..." + logger -t xcat -p local4.info "Statelite does not support syncfiles, nothing to do..." + exit 0 +fi + 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..."