Fixed one timing issue that in open firmware 'Select this console as the active console press 0' msg passed quite quickly and this makes lpar_netboot.expect messed up with next msg after it. Adjust expect cases to put 'ok(.*)0 >' as the highest priority than '(.*)elect this consol(.*)'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10397 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
f17d4135ca
commit
887d901e24
@ -2387,6 +2387,10 @@ nc_msg "$PROGRAM Status: Check for active console.\n"
|
||||
while { ! $done } {
|
||||
expect {
|
||||
-i $spawn_id_rconsole
|
||||
-re "ok(.*)0 >" {
|
||||
nc_msg "$PROGRAM Status: at ok prompt\n"
|
||||
set done 1
|
||||
}
|
||||
-re "(.*)elect this consol(.*)" {
|
||||
nc_msg "$PROGRAM Status: selecting active console\n"
|
||||
set command "0"
|
||||
@ -2407,10 +2411,6 @@ while { ! $done } {
|
||||
send_user "$PROGRAM Status: FSP password is invalid.\n"
|
||||
exit 1
|
||||
}
|
||||
-re "ok(.*)0 >" {
|
||||
nc_msg "$PROGRAM Status: at ok prompt\n"
|
||||
set done 1
|
||||
}
|
||||
-re "SMS(.*)Navigation Keys" {
|
||||
nc_msg "$PROGRAM Status: SMS\n"
|
||||
set done 1
|
||||
|
Loading…
Reference in New Issue
Block a user