From 1ce980f4e72056b56c50f0dc97a526c19e4016e9 Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 19 Mar 2012 14:51:04 +0000 Subject: [PATCH] fix a problem in otherpkgs git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11894 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/postscripts/otherpkgs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/xCAT/postscripts/otherpkgs b/xCAT/postscripts/otherpkgs index a83be9ea0..834ba3a57 100755 --- a/xCAT/postscripts/otherpkgs +++ b/xCAT/postscripts/otherpkgs @@ -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