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@10862 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
c7b91976a9
commit
53b2765c7a
@ -413,7 +413,15 @@ sub setupInstallloc
|
||||
{ # not mounted
|
||||
|
||||
# need to mount the directory
|
||||
my $cmd = "mount -o rw,nolock $master:$installloc $installdir";
|
||||
my $cmd;
|
||||
my @nfsv4 = xCAT::Utils->get_site_attribute("useNFSv4onAIX");
|
||||
if ($nfsv4[0] && ($nfsv4[0] =~ /1|Yes|yes|YES|Y|y/))
|
||||
{
|
||||
$cmd = "mount -o vers=4,rw,nolock $master:$installloc $installdir";
|
||||
}
|
||||
else
|
||||
{
|
||||
$cmd = "mount -o rw,nolock $master:$installloc $installdir";
|
||||
system $cmd;
|
||||
if ($? > 0)
|
||||
{ # error
|
||||
@ -1181,7 +1189,16 @@ sub setup_TFTP
|
||||
{
|
||||
|
||||
# need to mount the directory
|
||||
my $cmd = " mount -o rw,nolock $tftphost:$tftpdir $tftpdir";
|
||||
my $cmd;
|
||||
my @nfsv4 = xCAT::Utils->get_site_attribute("useNFSv4onAIX");
|
||||
if ($nfsv4[0] && ($nfsv4[0] =~ /1|Yes|yes|YES|Y|y/))
|
||||
{
|
||||
$cmd = " mount -o vers=4,rw,nolock $tftphost:$tftpdir $tftpdir";
|
||||
}
|
||||
else
|
||||
{
|
||||
$cmd = " mount -o rw,nolock $tftphost:$tftpdir $tftpdir";
|
||||
}
|
||||
system $cmd;
|
||||
if ($? > 0)
|
||||
{ # error
|
||||
|
Loading…
Reference in New Issue
Block a user