Skip to content

Conversation

@vathpela
Copy link
Member

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 <pjones@redhat.com>
@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