fix a problem in otherpkgs

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11910 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2012-03-20 14:16:23 +00:00
parent 69a57acdd2
commit a18ae5b90d

View File

@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/sh
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
#-------------------------------------------------------------------------------
@ -220,13 +220,15 @@ if [ -z "$INSTALLDIR" ]; then
INSTALLDIR="/install"
fi
#check if /install is mounted on the server, we may need to add code to conver NFSSERVER to ip
#check if /install is mounted on the server
mounted=0;
result=`mount |grep /install |grep $NFSSERVER`
result=`mount |grep " $INSTALLDIR " |grep $NFSSERVER`
if [ $? -eq 0 ]; then
mounted=1
fi
#OTHERPKGDIR is set only when the provmethod is the os image name
#when it is not set, we need to figure it out here
if [ -z "$OTHERPKGDIR" ]; then