From e0358ec35c84e8e11578b7c1120760dac87ab1cb Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 23 Apr 2010 11:09:06 +0000 Subject: [PATCH] remove xcatdefaults from the nodelist table on update git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/xCAT-server/sbin/xcatconfig b/xCAT-server/sbin/xcatconfig index 54354b640..8bbedee19 100644 --- a/xCAT-server/sbin/xcatconfig +++ b/xCAT-server/sbin/xcatconfig @@ -1158,6 +1158,19 @@ sub initDB verbose("Updated postscripts definition."); } } + # remove any xcatdefaults node in nodelist + # leave to cleanup from previous bug + my $rmdefault="$::XCATROOT/sbin/chtab -d node=xcatdefaults nodelist"; + my $outref = xCAT::Utils->runcmd("$rmdefault", 0); + if ($::RUNCMD_RC != 0) + { + xCAT::MsgUtils->message('E', + "Could not remove xcatdefaults."); + } + else + { + verbose("Removed xcatdefaults."); + } } } # end initial DB install setup