From 88078d3217620592b5ebc5b7f0126227f3d155bb Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 21 Apr 2009 07:11:42 +0000 Subject: [PATCH] fixed the issue that in some case, rnetboot will fail and lpar stay in open firmware mode git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3230 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/lpar_netboot.expect | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/xCAT-server/sbin/lpar_netboot.expect b/xCAT-server/sbin/lpar_netboot.expect index b450843f6..490e5492b 100644 --- a/xCAT-server/sbin/lpar_netboot.expect +++ b/xCAT-server/sbin/lpar_netboot.expect @@ -2388,8 +2388,24 @@ while { ! $done } { exec sleep 1 send -i $spawn_id_rconsole "0"; } - -re "bumped(.*)" { - exp_continue + -re "English|French|German|Italian|Spanish|Portuguese|Chinese|Japanese|Korean" { + nc_msg "$PROGRAM Status: Languagae Selection Panel received\n" + exec sleep 1 + send -i $spawn_id_rconsole "2\r" + } + -re "'admin'" { + nc_msg "$PROGRAM Status: No password specified\n" + send_user "$PROGRAM: No password specified\n" + exit 1 + } + -re "Invalid Password" { + nc_msg "$PROGRAM Status: FSP password is invalid.\n" + send_user "$PROGRAM Status: FSP password is invalid.\n" + exit 1 + } + -re "0 >" { + nc_msg "$PROGRAM Status: at ok prompt\n" + set done 1 } timeout { send_user "$PROGRAM: Timeout; exiting\n"