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

zfsbootmenu: clean up main loop #582

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

zdykstra
Copy link
Member

Rather than relying to a call to draw_be to determine if the bootenvs file is empty, the main loop should use the return code of populate_be_list to determine if any boot environments were found.

The sanity checks in draw_be are still present.

Copy link
Member

@ahesford ahesford left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable, and makes me wonder why it was structured so strangely before.

Rather than relying on a call to draw_be to determine if the bootenvs
file is empty, the main loop should use the return code of
populate_be_list to determine if any boot environments were found.

The sanity checks in draw_be are still present.
@zdykstra zdykstra force-pushed the intentional-foul-loss-of-5-boot-environments branch from 7f9b11d to f1c3b8f Compare January 27, 2024 05:02
@zdykstra zdykstra merged commit 2611f36 into master Jan 27, 2024
3 checks passed
@zdykstra zdykstra deleted the intentional-foul-loss-of-5-boot-environments branch January 27, 2024 05:05
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.

None yet

2 participants