From a18ae5b90da062838000cef7d6ee16f9ffebfbf6 Mon Sep 17 00:00:00 2001 From: linggao Date: Tue, 20 Mar 2012 14:16:23 +0000 Subject: [PATCH] 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 --- 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