nfsv4 support, add -o vers=4 to mount commands if site.useNFSv4onAIX is set

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2011-10-24 11:07:58 +00:00
parent fb778348c4
commit 840293e273

View File

@ -2028,7 +2028,16 @@ sub updateAIXsoftware
}
# mount source dir to node
my $mcmd = qq~mkdir -m 644 -p /xcatmnt; mount $serv:$pkgdir /xcatmnt~;
my $mcmd;
my @nfsv4 = xCAT::Utils->get_site_attribute("useNFSv4onAIX");
if ($nfsv4[0] && ($nfsv4[0] =~ /1|Yes|yes|YES|Y|y/))
{
$mcmd = qq~mkdir -m 644 -p /xcatmnt; mount -o vers=4 $serv:$pkgdir /xcatmnt~;
}
else
{
$mcmd = qq~mkdir -m 644 -p /xcatmnt; mount $serv:$pkgdir /xcatmnt~;
}
if ($::VERBOSE)
{