sonic-buildimage/device/mellanox/x86_64-nvidia_sn4800-r0
Vadym Hlushko 1d57472eb0
[graceful reboot] Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle (#18324)
**DEPENDS ON: [[graceful reboot] Add the pre_reboot_hook script execution, add the watchdog arm before the reboot](https://github.com/sonic-net/sonic-utilities/pull/3203)**

#### Why I did it
Add support for the `graceful reboot` instead of  the `sysfs power cycle` to avoid filesystem corruption 

### How I did it
Rename the `platform_reboot` script to the `pre_reboot_hook`.
Remove the sysfs power cycle function, from now on the Debian reboot (`/sbin/reboot`) will be executed instead of the sysfs power cycle.

#### How to verify it
1. Start watching logs by using `show log -f` and `journalctl -p debug -f`
2. Execute the `reboot` command from the switch CLI
3. Check in logs that all systemd services terminated
2024-03-23 16:45:36 -07:00
..
ACS-SN4800 [Mellanox] Update Nvidia sai.profile SKU files to have common file (#18074) 2024-02-28 11:05:20 -08:00
plugins [Mellanox] Rename platform x86_64-mlnx_msn4800 to x86_64-nvidia_sn4800 (#9512) 2021-12-15 09:08:04 +02:00
default_sku [Mellanox] Rename platform x86_64-mlnx_msn4800 to x86_64-nvidia_sn4800 (#9512) 2021-12-15 09:08:04 +02:00
installer.conf [Mellanox] Disable SSD NCQ on Mellanox platforms (#17567) 2024-01-28 16:26:07 +02:00
pcie.yaml [Mellanox] Rename platform x86_64-mlnx_msn4800 to x86_64-nvidia_sn4800 (#9512) 2021-12-15 09:08:04 +02:00
platform_asic [Mellanox] Rename platform x86_64-mlnx_msn4800 to x86_64-nvidia_sn4800 (#9512) 2021-12-15 09:08:04 +02:00
platform_components.json [Mellanox] Fix platform name for SN4800 (#9635) 2021-12-28 14:58:28 +02:00
platform_wait [Mellanox] Rename platform x86_64-mlnx_msn4800 to x86_64-nvidia_sn4800 (#9512) 2021-12-15 09:08:04 +02:00
platform.json [Mellanox] Fix platform name for SN4800 (#9635) 2021-12-28 14:58:28 +02:00
pmon_daemon_control.json [Mellanox] Rename platform x86_64-mlnx_msn4800 to x86_64-nvidia_sn4800 (#9512) 2021-12-15 09:08:04 +02:00
pre_reboot_hook [graceful reboot] Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle (#18324) 2024-03-23 16:45:36 -07:00
sensors.conf [Mellanox] Rename platform x86_64-mlnx_msn4800 to x86_64-nvidia_sn4800 (#9512) 2021-12-15 09:08:04 +02:00
system_health_monitoring_config.json [Mellanox] Rename platform x86_64-mlnx_msn4800 to x86_64-nvidia_sn4800 (#9512) 2021-12-15 09:08:04 +02:00
thermal_policy.json [Mellanox] Rename platform x86_64-mlnx_msn4800 to x86_64-nvidia_sn4800 (#9512) 2021-12-15 09:08:04 +02:00