From 496c97c6c5f38e13792207ee4c4d554696d3dd80 Mon Sep 17 00:00:00 2001 From: sjing Date: Fri, 26 Aug 2011 03:43:35 +0000 Subject: [PATCH] Hitachi PMR fix - swapnfs is not available when paging resource is chaged. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10374 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/xcatd | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 8fd62a130..81f430f4e 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -386,8 +386,16 @@ if ($inet6support) { plugin_command(\%request,undef,\&build_response); close($conn); - } - + } elsif ($text =~ /basecustremv/) { + + $text =~ s/basecustremv //; + chomp $text; + # remove the BASECUST_REMOVAL line from /tftpboot/hostname.info file + my $myfile = "/tftpboot/$text" . ".info"; + `/usr/bin/cat $myfile | /usr/bin/sed "/BASECUST_REMOVAL/d">/tmp/$text.nimtmp`; + `/usr/bin/mv /tmp/$text.nimtmp $myfile`; + close($conn); + } alarm(2); } alarm(0);