sonic-buildimage/device/mellanox
Stephen Sun 97a091abd2
[Mellanox] Use Debian reboot in Nvidia platform reboot when it is invoked from kdump capture boot (#15701)
#### Why I did it

When a kernel crash occurs, the system will reboot to the kdump capture kernel if kdump is enabled (`config kdump enable`). In the kdump capture boot, it only stores the crash information, and then reboot the system to a normal boot.
In this boot, no SONiC service is started but it invokes `reboot` which is actually the SONiC reboot that depends on SONiC services. There is a logic to skip all SONiC stuff and invoke platform reboot in SONiC reboot to avoid issues.
However, on Nvidia platforms, the platform reboot still depends on SONiC services, which can cause issues.
So, the Debian reboot is called directly in platform reboot if it is invoked from the kdump capture boot.

#### How I did it

Manual test
2023-08-04 13:24:38 -07:00
..
x86_64-mlnx_lssn2700-r0 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-mlnx_msn2010-r0 [Mellanox] Advance hw-mgmt to v.7.0020.4104 (#13372) 2023-02-12 11:23:47 +02:00
x86_64-mlnx_msn2100-r0 [Mellanox] Advance hw-mgmt to v.7.0020.4104 (#13372) 2023-02-12 11:23:47 +02:00
x86_64-mlnx_msn2410-r0 [Mellanox] Advance hw-mgmt to v.7.0020.4104 (#13372) 2023-02-12 11:23:47 +02:00
x86_64-mlnx_msn2700_simx-r0 Removed platform specific reboot files for mellanox simx platforms (#10806) 2022-05-14 15:20:57 +03:00
x86_64-mlnx_msn2700-r0 [Mellanox] Use Debian reboot in Nvidia platform reboot when it is invoked from kdump capture boot (#15701) 2023-08-04 13:24:38 -07:00
x86_64-mlnx_msn2740-r0 [Reclaim buffer] Reclaim unused buffers by applying zero buffer profiles (#8768) 2021-11-29 08:04:01 -08:00
x86_64-mlnx_msn3420-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-mlnx_msn3700_simx-r0 Removed platform specific reboot files for mellanox simx platforms (#10806) 2022-05-14 15:20:57 +03:00
x86_64-mlnx_msn3700-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-mlnx_msn3700c-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-mlnx_msn3800-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-mlnx_msn4410-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-mlnx_msn4600-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-mlnx_msn4600c-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-mlnx_msn4700_simx-r0 Removed platform specific reboot files for mellanox simx platforms (#10806) 2022-05-14 15:20:57 +03:00
x86_64-mlnx_msn4700-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-mlnx_x86-r5.0.1400 Add platform_asic file to each platform folder in sonic-device-data based package (#8542) 2021-10-08 19:27:48 -07:00
x86_64-nvidia_sn2201-r0 [Mellanox] Advance hw-mgmt to v.7.0020.4104 (#13372) 2023-02-12 11:23:47 +02:00
x86_64-nvidia_sn4800_simx-r0 Removed platform specific reboot files for mellanox simx platforms (#10806) 2022-05-14 15:20:57 +03:00
x86_64-nvidia_sn4800-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-nvidia_sn5600_simx-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00
x86_64-nvidia_sn5600-r0 [Mellanox] Add mlxtrace to techsupport (#15961) 2023-08-03 11:36:58 +03:00