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

fallback: don't add new boot order entries backwards #730

Merged
merged 1 commit into from
Mar 3, 2025

Conversation

vathpela
Copy link
Contributor

In issues #554 and elsewhere, it's been noted that when fallback is creating multiple entries, it will create them in one order and add them to BootOrder in the opposite order. This is weird.

This patch changes fallback to keep a list of "new" entries, and then prepend that entire list to BootOrder when it's done, rather than prepending one at a time, that avoiding the inversion.

Resolves issue #554.

In issues rhboot#554 and elsewhere, it's been noted that when fallback is
creating multiple entries, it will create them in one order and add them
to BootOrder in the opposite order.  This is weird.

This patch changes fallback to keep a list of "new" entries, and then
prepend that entire list to BootOrder when it's done, rather than
prepending one at a time, that avoiding the inversion.

Resolves issue rhboot#554.

Signed-off-by: Peter Jones <[email protected]>
@vathpela vathpela requested a review from jsetje March 3, 2025 17:38
@vathpela vathpela merged commit 498b149 into rhboot:main Mar 3, 2025
20 checks passed
@vathpela vathpela deleted the fallback-order branch March 3, 2025 20:03
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