diff --git a/xCAT/postscripts/ospkgs b/xCAT/postscripts/ospkgs index 4a7f2f806..c2b4123d3 100755 --- a/xCAT/postscripts/ospkgs +++ b/xCAT/postscripts/ospkgs @@ -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 diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index bb0afce52..2fa36f409 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -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