From 07064d4ee172f3d7ecf1eef1713263368b1f6f1e Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Thu, 16 Dec 2010 03:08:49 +0000 Subject: [PATCH] Fixed bug 3137682 that getmacs fails on a new lpar for the first time git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8430 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/lpar_netboot.expect | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xCAT-server/sbin/lpar_netboot.expect b/xCAT-server/sbin/lpar_netboot.expect index 5a87f9fe6..218ebcdac 100644 --- a/xCAT-server/sbin/lpar_netboot.expect +++ b/xCAT-server/sbin/lpar_netboot.expect @@ -2355,6 +2355,17 @@ while { ! $done } { set done 1 continue } + + set timeout 1 + expect { + -i $spawn_id_rconsole + -re "(.*)elect this consol(.*)" { + nc_msg "$PROGRAM Status: selecting active console\n" + set command "0" + send_command + } + } + incr query_count if { $query_count > 300 } {