[202305][graceful reboot] Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle
DEPENDS ON: [202305][graceful reboot] Add the pre_reboot_hook script execution, add the watchdog arm before the reboot
Why I did it
Add support for the graceful reboot instead of the sysfs power cycle to avoid filesystem corruption
Work item tracking
- Microsoft ADO (number only):
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
- Start watching logs by using
show log -fandjournalctl -p debug -f - Execute the
rebootcommand from the switch CLI - Check in logs that all systemd services terminated
Which release branch to backport (provide reason below if selected)
- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106
- [ ] 202111
- [ ] 202205
- [ ] 202211
- [ ] 202305
Tested branch (Please provide the tested image version)
- [ ]
- [ ]
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)
@prgeor Can you please also review this one?
@yxieca @prgeor kindly reminder, this is a major fix needed for 202305
@yxieca, @prgeor kind reminder to merge, the same changes were already merged into master
@vadymhlushko-mlnx appreciate if you could point to the master PR in the description
@prgeor could you please help to merge
@prgeor could you please help to merge
@liat-grozovik can you merge.
@liat-grozovik could you please merge
@StormLiangMS , Can you please assist with merge ?
@StormLiangMS @yxieca can you merge
@StormLiangMS @yxieca can you please merge
hi @bingwang-ms could you help to comment on this? Is this needed for 202305?