From 9c0503c151829e09335d6742335489ac1c231ad4 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 1 Nov 2011 11:10:06 +0000 Subject: [PATCH] NFSv4 support for xcataixpost git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10952 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/xcataixpost | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT/postscripts/xcataixpost b/xCAT/postscripts/xcataixpost index 3c81f721a..fc960dd3d 100755 --- a/xCAT/postscripts/xcataixpost +++ b/xCAT/postscripts/xcataixpost @@ -169,6 +169,7 @@ if (&getmypost != 0) { # get the installdir to use my $installdir; +my $usenfsv4; if (-f $scriptname) { # set the timezone my $cmd = "cat $scriptname | grep 'INSTALLDIR='"; @@ -177,6 +178,11 @@ if (-f $scriptname) { my ($junk, $installdir) = split(/=/, $dline); chomp $installdir; $installdir =~ s/^(\'|\")(.*)(\"|\')$/$2/; # remove any surrounding quotes + $cmd = "cat $scriptname | grep 'USENFSV4ONAIX='"; + &runcmd($cmd); + $dline = $::outref; + ($junk, $usenfsv4) = split(/=/, $dline); + chomp $usenfsv4; } if (!$installdir) { $installdir = "/install"; @@ -189,7 +195,7 @@ if ( !(-f "/xcatpost/xcataixpost") || $::opt_c ) { # get the contents of the /install/postscripts dir on the server # - mount dir from server and copy files my $mcmd; - if ($ENV{'USENFSV4ONAIX'} && ($ENV{'USENFSV4ONAIX'} =~ /1|Yes|yes|YES|Y|y/)) + if ($usenfsv4 && ($usenfsv4 =~ /1|Yes|yes|YES|Y|y/)) { $mcmd = "mkdir -p /xcatmnt; mount -o vers=4 $servnode:$installdir/postscripts /xcatmnt"; } else {