diff --git a/xCAT-server/sbin/lpar_netboot.expect b/xCAT-server/sbin/lpar_netboot.expect index a4cf7b3f9..c7a0723bd 100644 --- a/xCAT-server/sbin/lpar_netboot.expect +++ b/xCAT-server/sbin/lpar_netboot.expect @@ -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