Skip to content

[arista] add default boot option for SWI files. #323

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

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

Staphylo
Copy link
Contributor

- What I did

Add some helpers to edit the boot-config for Aboot based products.
Calling set_default_boot will now set SWI and SWI_DEFAULT to the next
image to boot. Upon boot the SWI value gets overriden by SWI_DEFAULT.
This mimics the behavior that grub has.

- How to verify it

A change from sonic-buildimage in boot0 is required to properly test.
However the logic here can be tested by looking at the content of boot-config after running set_next_boot and set_default.

-->

Add some helpers to edit the boot-config for Aboot based products.
Calling set_default_boot will now set SWI and SWI_DEFAULT to the next
image to boot. Upon boot the SWI value gets overriden by SWI_DEFAULT.
This mimic the behavior that grub has.
@yxieca yxieca merged commit f78bba4 into sonic-net:master Sep 19, 2018
mihirpat1 added a commit to mihirpat1/sonic-utilities that referenced this pull request Sep 15, 2023
Signed-off-by: Mihir Patel <[email protected]>

Signed-off-by: Mihir Patel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants