[warm/fast-reboot] Fix kexec portion to support platforms based on De…#1966
Merged
yxieca merged 1 commit intosonic-net:masterfrom Dec 17, 2021
Merged
[warm/fast-reboot] Fix kexec portion to support platforms based on De…#1966yxieca merged 1 commit intosonic-net:masterfrom
yxieca merged 1 commit intosonic-net:masterfrom
Conversation
…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
sujinmkang
approved these changes
Dec 10, 2021
5 tasks
Contributor
|
This commit could not be cleanly cherry-picked to 202012. Please submit another PR. |
Contributor
Author
|
I submitted PR# 1980 to deliver the fix the 202012 branch. |
judyjoseph
pushed a commit
that referenced
this pull request
Jan 9, 2022
…vice Tree (#1966) 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…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)