fix for bug 3568791: add nfs export options -vers 3:4 for /install/postscripts on SN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -199,7 +199,17 @@ sub setupAIXsn
 | 
			
		||||
	# check if /install/postscripts is in /etc/exports
 | 
			
		||||
    if (&runcmd("/bin/cat /etc/exports 2>/dev/null | grep '$installdir/postscripts ' >/dev/null 2>&1")  != 0) {
 | 
			
		||||
        # if not add it and make sure it is exported
 | 
			
		||||
        if (&runcmd("echo '$installdir/postscripts -ro' >> /etc/exports; exportfs -a") !=0 ) {
 | 
			
		||||
        my $res;
 | 
			
		||||
        if ($ENV{'USENFSV4ONAIX'} && ($ENV{'USENFSV4ONAIX'} =~ /1|Yes|yes|YES|Y|y/))
 | 
			
		||||
        {
 | 
			
		||||
            $res = &runcmd("echo '$installdir/postscripts -vers=3:4,ro' >> /etc/exports; exportfs -a");
 | 
			
		||||
        }
 | 
			
		||||
        else
 | 
			
		||||
        {
 | 
			
		||||
            $res = &runcmd("echo '$installdir/postscripts -ro' >> /etc/exports; exportfs -a");
 | 
			
		||||
        }
 | 
			
		||||
        if ($res != 0)
 | 
			
		||||
        {
 | 
			
		||||
            $msg = "$::sdate servicenode: Could not update the /etc/exports file.\n";
 | 
			
		||||
            `logger -t xcat $msg`;
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user