mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	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:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user