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@10865 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
301910f68f
commit
749767e711
@ -202,7 +202,11 @@ if [ $ADD -eq 1 ]; then
|
||||
rm -rf $NFSSERVER
|
||||
else
|
||||
mkdir -p /xcatmnt
|
||||
result=`mount $NFSSERVER:/install/postscripts /xcatmnt`
|
||||
if [[ $USENFSV4ONAIX = yes ]] || [[ $USENFSV4ONAIX = 1 ]] || [[ $USENFSV4ONAIX = Yes ]] || [[ $USENFSV4ONAIX = YES ]] || [[ $USENFSV4ONAIX = Y ]] || [[ $USENFSV4ONAIX = y ]]; then
|
||||
result=`mount -o vers=4 $NFSSERVER:/install/postscripts /xcatmnt`
|
||||
else
|
||||
result=`mount $NFSSERVER:/install/postscripts /xcatmnt`
|
||||
fi
|
||||
if [ $? -gt 0 ]; then
|
||||
echo "Failed to mount:$result"
|
||||
logger -t xCAT "Failed to mount $result"
|
||||
|
Loading…
Reference in New Issue
Block a user