From 0bab2757bfdb34d87537edb297b31c02454dce81 Mon Sep 17 00:00:00 2001 From: nott Date: Mon, 8 Jun 2009 19:21:42 +0000 Subject: [PATCH] Remove xcataixpost from inittab file for duskfull AIX nodes. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3532 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcataixpost | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index ffff4f1df..2d2acea0d 100755 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -230,6 +230,20 @@ if (-f $scriptname) { } } +# If this is a diskfull node then remove the xcat entry in the inittab file +if ($nodesetstat eq 'standalone') { + # see if it is already there + my $lsicmd = "/usr/sbin/lsitab xcat > /dev/null 2>&1"; + if (&runcmd($lsicmd) != 0) { + # ok - remove the entry + my $rmitab_cmd = 'rmitab "xcat" > /dev/null 2>&1'; + if (&runcmd($rmitab_cmd) != 0) { + print "$::sdate xcataixpost: Could not remove xcataixpost from /etc/inittab.\n"; + print $::LOG_FILE "$::sdate xcataixpost: Could not remove xcataixpost from /etc/inittab.\n"; + } + } +} + close($::LOG_FILE); exit 0;