fix for bug 3466334: if the /install is mounted from MN, the ospkgdir and otherpkgdir should be different

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11319 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2011-12-30 08:57:37 +00:00
parent 504d6f443e
commit 3db2c1817b
2 changed files with 10 additions and 2 deletions

View File

@ -71,7 +71,11 @@ if [ $? -eq 0 ]; then
fi
if [ -z "$OSPKGDIR" ]; then
OSPKGDIR="$NFSSERVER$INSTALLDIR/$OSVER/$ARCH"
if [ $mounted -eq 0 ]; then
OSPKGDIR="$NFSSERVER$INSTALLDIR/$OSVER/$ARCH"
else
OSPKGDIR="$NFSSERVER/$OSVER/$ARCH"
fi
if ( pmatch "$OSVER" "sles*" ); then
OSPKGDIR="$OSPKGDIR/1"
elif ( pmatch "$OSVER" "rhel*" ); then

View File

@ -229,7 +229,11 @@ if [ $? -eq 0 ]; then
fi
if [ -z "$OTHERPKGDIR" ]; then
OTHERPKGDIR="$NFSSERVER$INSTALLDIR/post/otherpkgs/$OSVER/$ARCH"
if [ $mounted -eq 0 ]; then
OTHERPKGDIR="$NFSSERVER$INSTALLDIR/post/otherpkgs/$OSVER/$ARCH"
else
OTHERPKGDIR="$NFSSERVER/post/otherpkgs/$OSVER/$ARCH"
fi
fi
if [ $mounted -eq 0 ]; then