File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,6 @@ if { ! $POWER_RESET} {
169
169
170
170
expect -timeout 150 -ex "GNU GRUB" {
171
171
log_message "INF" $SW_NAME "GRUB Menu detected"
172
- # Select the ONIE option, and finally the Install OS option
173
172
sleep 1
174
173
send -- "$KEY_HOME"
175
174
set timeout 1
@@ -185,6 +184,10 @@ expect -timeout 150 -ex "GNU GRUB" {
185
184
"ONIE: OS Install Mode ..." {
186
185
log_message "INF" $SW_NAME "Entering OS Install Mode..."
187
186
}
187
+ eof {
188
+ log_message "ERR" $SW_NAME "Connection lost before confirming ONIE install mode"
189
+ exit $ERROR_CONSOLE
190
+ }
188
191
timeout {
189
192
send "\r"
190
193
}
@@ -194,6 +197,10 @@ expect -timeout 150 -ex "GNU GRUB" {
194
197
send -- "$KEY_DOWN"
195
198
exp_continue
196
199
}
200
+ eof {
201
+ log_message "ERR" $SW_NAME "Connection lost during GRUB menu expect"
202
+ exit $ERROR_CONSOLE
203
+ }
197
204
}
198
205
} timeout {
199
206
log_message "ERR" $SW_NAME "Failed to reset. GRUB not detected."
You can’t perform that action at this time.
0 commit comments