From bc8b54bbd86b7b90cfee946ed614542c689286da Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 23 Mar 2010 05:32:49 +0000 Subject: [PATCH] Check the expect binary before issue lpar_netboot.expect git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCboot.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/perl-xCAT/xCAT/PPCboot.pm b/perl-xCAT/xCAT/PPCboot.pm index 1e80eb09c..e72e5ede5 100644 --- a/perl-xCAT/xCAT/PPCboot.pm +++ b/perl-xCAT/xCAT/PPCboot.pm @@ -135,6 +135,9 @@ sub do_rnetboot { if ( !-x $cmd ) { return( [RC_ERROR,"Command not installed: $cmd"] ); } + if (!-x "/usr/bin/expect" ) { + return( [RC_ERROR,"Command not installed: /usr/bin/expect"] ); + } ####################################### # Save user name and passwd of hcp to # environment variables.