Skip to content

Commit

Permalink
[202012][Mellanox]: Update ONiE FW tool: manual reboot control. (#13359)
Browse files Browse the repository at this point in the history
Partial cherry-pick of: [Mellanox] Modified Platform API to support all firmware updates in single boot #9608

- Why I did it
To allow user manual reboot control over ONiE FW upgrade

- How I did it
Added a dedicated script argument handling

- How to verify it
mlnx-onie-fw-update.sh update --no-reboot

Signed-off-by: Nazarii Hnydyn <[email protected]>
  • Loading branch information
nazariig authored Jan 16, 2023
1 parent 94c689f commit 5193a96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions platform/mellanox/mlnx-onie-fw-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ case "${cmd}" in
rc=$?
disable_onie_access
if [[ ${rc} -eq 0 ]]; then
if [[ "${arg}" == "--no-reboot" ]]; then
echo "INFO: ONIE firmware update successfully STAGED for install at NEXT reboot. Please reboot manually to complete installation"
exit 0
fi
system_reboot
else
echo "ERROR: failed to enable ONIE firmware update mode"
Expand Down

0 comments on commit 5193a96

Please sign in to comment.