From 5610770c7eddd0533d97aeafea8fb02b6792ec8d Mon Sep 17 00:00:00 2001 From: sjing Date: Mon, 29 Aug 2011 03:04:33 +0000 Subject: [PATCH] Hitachi PMR fix - swapnfs is not available when paging resource is changed. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@10380 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 d736e4051..7aa8e7bbc 100755 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -370,8 +370,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);