**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 |
||
---|---|---|
.. | ||
accton | ||
alphanetworks | ||
arista | ||
barefoot | ||
broadcom | ||
celestica | ||
centec | ||
cig | ||
common | ||
dell | ||
delta | ||
facebook/x86_64-facebook_wedge100-r0 | ||
fs/arm64-fs_s5800_48t4s-r0 | ||
ingrasys | ||
inventec | ||
juniper | ||
marvell | ||
mellanox | ||
mitac/x86_64-mitac_ly1200_b32h0_c3-r0 | ||
netberg | ||
nokia | ||
pegatron/x86_64-pegatron_porsche-r0 | ||
pensando/arm64-elba-asic-r0 | ||
quanta | ||
ragile | ||
ruijie/x86_64-ruijie_b6510-48vs8cq-r0 | ||
supermicro/x86_64-supermicro_sse_t7132s-r0 | ||
tencent | ||
ufispace | ||
virtual | ||
wistron | ||
wnc/x86_64-wnc_osw1800-r0 |