-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[grub]: Allow ONiE oneshot boot for FW update #3935
Conversation
Signed-off-by: Nazarii Hnydyn <[email protected]>
cannot find the onie_entry spec in the url provided above. can you point out the link to the onie_entry? |
There is no official spec for this naming convention. It's just a proposal to introduce a separate Grub environment variable to control oneshoot boot for FW update. This approach allows to avoid user accident modification of next boot partition. |
@lguohan please merge if no further concerns |
@lguohan kindly reminder - please have a look |
Added ONiE oneshoot boot feature Signed-off-by: Nazarii Hnydyn <[email protected]>
Added ONiE oneshoot boot feature Signed-off-by: Nazarii Hnydyn <[email protected]>
Added ONiE oneshoot boot feature Signed-off-by: Nazarii Hnydyn <[email protected]>
Signed-off-by: Nazarii Hnydyn [email protected]
This small improvement enables ONiE oneshoot boot for various firmware update operations
(BIOS, CPLD, etc.):
https://opencomputeproject.github.io/onie/design-spec/firmware_update.html
The new flow allows to avoid the certain types of issues:
Example:
root@sonic:/home/admin# sonic_installer list Current: SONiC-OS-HEAD.140-fc36ca6e Next: SONiC-OS-HEAD.140-fc36ca6e Available: SONiC-OS-HEAD.140-fc36ca6e SONiC-OS-HEAD.5-386619ac root@sonic:/home/admin# grub-editenv /host/grub/grubenv set onie_entry=2 root@sonic:/home/admin# sonic_installer set_next_boot SONiC-OS-HEAD.5-386619ac Command: grub-reboot --boot-directory=/host 1 root@sonic:/home/admin# grub-editenv /host/grub/grubenv list saved_entry=0 next_entry=1 onie_entry=2 root@sonic:/home/admin# sonic_installer list Current: SONiC-OS-HEAD.140-fc36ca6e Next: SONiC-OS-HEAD.5-386619ac Available: SONiC-OS-HEAD.140-fc36ca6e SONiC-OS-HEAD.5-386619ac
- What I did
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)