sonic-buildimage/device/mellanox/x86_64-mlnx_msn2700a1-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-MSN2700-A1 [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
default_sku [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
installer.conf [Mellanox] Disable SSD NCQ on Mellanox platforms (#17567) 2024-01-28 16:26:07 +02:00
Mellanox-SN2700-A1 [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
Mellanox-SN2700-A1-C28D8 [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
Mellanox-SN2700-A1-D40C8S8 [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
Mellanox-SN2700-A1-D44C10 [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
Mellanox-SN2700-A1-D48C8 [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
pcie.yaml [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
platform_asic [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
platform_components.json [Mellanox] fix new MSN2700-A1 platform name (#17151) 2023-11-15 08:29:11 +02:00
platform_wait [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
platform.json [Mellanox] fix new MSN2700-A1 platform name (#17151) 2023-11-15 08:29:11 +02:00
plugins [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
pmon_daemon_control.json [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07: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] Remove SFP sensors from sensors.conf (#17631) 2024-02-12 16:12:57 +02:00
system_health_monitoring_config.json [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00
thermal_policy.json [Mellanox] add new platform 2700 a1 (#16515) 2023-09-23 00:15:17 -07:00