fix for NFSv4 support, in hiarachy env

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6350 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2010-06-04 08:34:28 +00:00
parent 6d85ae6b97
commit 40d74e0b7e

View File

@ -6881,10 +6881,6 @@ sub mkdsklsnode
# define the node
my $defcmd = "/usr/sbin/nim -o define -t $type ";
if ($::NFSV4)
{
$defcmd .= "-a nfs_vers=4 ";
}
if ($::NEWNAME)
{
$defcmd .= "-a if1='find_net $nodeshorthost 0' ";
@ -7820,8 +7816,15 @@ sub make_SN_resource
dirname(dirname($lochash{$imghash{$image}{$restype}}));
chomp $loc;
my $spotcmd =
"/usr/lpp/bos.sysmgt/nim/methods/m_mkspot -o -a server=master -a location=$loc -a source=no $imghash{$image}{$restype}";
my $spotcmd;
if ($::NFSV4)
{
$spotcmd = "/usr/lpp/bos.sysmgt/nim/methods/m_mkspot -o -a server=master -a location=$loc -a nfs_vers=4 -a source=no $imghash{$image}{$restype}";
}
else
{
$spotcmd = "/usr/lpp/bos.sysmgt/nim/methods/m_mkspot -o -a server=master -a location=$loc -a source=no $imghash{$image}{$restype}";
}
if ($::VERBOSE)
{