fix problems in otherpkgs postscripts

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11773 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2012-03-06 21:32:13 +00:00
parent 6dab868b55
commit b00f10a1d9

View File

@ -224,22 +224,20 @@ fi
mounted=0;
result=`mount |grep /install |grep $NFSSERVER`
if [ $? -eq 0 ]; then
NFSSERVER="/install"
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
if [ $mounted -eq 0 ]; then
OTHERPKGDIR="$NFSSERVER$INSTALLDIR/post/otherpkgs/$OSVER/$ARCH"
else
OTHERPKGDIR="$NFSSERVER/post/otherpkgs/$OSVER/$ARCH"
OTHERPKGDIR="$INSTALLDIR/post/otherpkgs/$OSVER/$ARCH"
fi
fi
if [ $mounted -eq 0 ]; then
otherpkg_subdir=${OTHERPKGDIR#$INSTALLDIR}
if [ "$otherpkg_subdir" != "$OTHERPKGDIR" ]; then
OTHERPKGDIR=${NFSSERVER}${otherpkg_subdir}
else
if [ $mounted -eq 0 ]; then
OTHERPKGDIR=${NFSSERVER}${OTHERPKGDIR}
fi
fi