Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[202205] Backport: Rename the platform_reboot to the pre_reboot_hook, remove the sysfs power cycle #21686

Open
wants to merge 1 commit into
base: 202205
Choose a base branch
from

Conversation

jianyuewu
Copy link

Backport commit #18324.

Why I did it

Back port 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

Start watching logs by using show log -f and journalctl -p debug -f.
Execute the reboot command from the switch CLI.
Check in logs that all systemd services terminated.

Which release branch to backport (provide reason below if selected)

  • 202205

Because 202205 branch is missing this change.

Tested branch (Please provide the tested image version)

SONiC.202205_5_rc.7-3349088e1

Back port from master branch.

Why I did it
Back port 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
Start watching logs by using show log -f and journalctl -p debug -f.
Execute the reboot command from the switch CLI.
Check in logs that all systemd services terminated.

Signed-off-by: Jianyue Wu <[email protected]>
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants