Commit 1d57472
authored
[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](sonic-net/sonic-utilities#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 terminated1 parent e877ca4 commit 1d57472
36 files changed
Lines changed: 51 additions & 72 deletions
File tree
- device/mellanox
- x86_64-mlnx_lssn2700-r0
- x86_64-mlnx_msn2010-r0
- x86_64-mlnx_msn2100-r0
- x86_64-mlnx_msn2410-r0
- x86_64-mlnx_msn2700-r0
- x86_64-mlnx_msn2700a1-r0
- x86_64-mlnx_msn2740-r0
- x86_64-mlnx_msn3420-r0
- x86_64-mlnx_msn3700-r0
- x86_64-mlnx_msn3700c-r0
- x86_64-mlnx_msn3800-r0
- x86_64-mlnx_msn4410-r0
- x86_64-mlnx_msn4600-r0
- x86_64-mlnx_msn4600c-r0
- x86_64-mlnx_msn4700-r0
- x86_64-nvidia_sn2201-r0
- x86_64-nvidia_sn4800-r0
- x86_64-nvidia_sn5600-r0
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments