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

[warm/fast-reboot] Fix kexec portion to support platforms based on De… #1980

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

Conversation

dflynn-Nokia
Copy link
Contributor

…vice Tree

The warm-reboot and fast-reboot commands currently expect a platform that uses
GRUB. Information about the current kernel boot arguments is extracted from
the GRUB config file. This commit adds support for platforms that do not use
GRUB but rather use Device Tree to define the current kernel boot arguments.
Example platform architectures using Device Tree include armhf and arm64.

This commit also includes a minor improvement to a similar change made to the
soft-reboot command in PR# 1963

What I did

Fix kexec portion of warm-reboot and fast-reboot commands for the armhf and arm64 platforms

How I did it

Add logic to retrieve kernel boot arguments from the Device Tree rather than from the GRUB config for these platforms

How to verify it

Execute the warm-reboot and fast-reboot commands on an armhf or arm64 platform and confirm that kexec reboots the switch as expected

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@dflynn-Nokia
Copy link
Contributor Author

@sujinmkang : qiluo requested in PR 1966 that this new PR be created to facilitate delivery to the 202012 branch.
Can you help move this along?

Thanks,
Dennis

@sujinmkang
Copy link
Collaborator

@dflynn-Nokia Do we still need this PR to be merged? Can you please rebase this PR?

@dflynn-Nokia
Copy link
Contributor Author

@sujinmkang Yes, I would like this merged to 202012. I will rebase.

…vice Tree

The warm-reboot and fast-reboot commands currently expect a platform that uses
GRUB.  Information about the current kernel boot arguments is extracted from
the GRUB config file. This commit adds support for platforms that do not use
GRUB but rather use Device Tree to define the current kernel boot arguments.
Example platform architectures using Device Tree include armhf and arm64.

This commit also includes a minor improvement to a similar change made to the
soft-reboot command in PR# 1963
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