Skip to content

Commit 5c6fd30

Browse files
[Mellanox] Fix reboot script usage in mlnx-onie-fw-update (#18863)
/usr/local/bin/reboot could return execution back to the invoking script in case of using graceful reboot. So, exit the script with reboot return code instead of proceeding with execution. - Why I did it Fix BIOS fw update procedure. - How I did it Return exit code from reboot script in mlnx-onie-fw-update.sh - How to verify it Tested with successful reboot Tested with unsuccessful reboot Signed-off-by: Stepan Blyschak <[email protected]>
1 parent afdc5d0 commit 5c6fd30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

platform/mellanox/mlnx-onie-fw-update.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
#
3-
# Copyright (c) 2020-2022 NVIDIA CORPORATION & AFFILIATES.
3+
# Copyright (c) 2020-2024 NVIDIA CORPORATION & AFFILIATES.
44
# Apache-2.0
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -107,6 +107,7 @@ system_reboot() {
107107

108108
# Use SONiC reboot scenario
109109
/usr/local/bin/reboot
110+
exit $?
110111
}
111112

112113
terminate_handler() {

0 commit comments

Comments
 (0)