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

feat: prevent formatting /boot as VFAT in partition editor #886

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

d-loose
Copy link
Member

@d-loose d-loose commented Dec 3, 2024

One of the most common errors related to manual partitioning seems to be users trying to use VFAT for /boot, see e.g. lp:2064678.

To prevent the user from doing so, this PR disables the "Ok" button in the partition creation and modification dialogs and shows an error message. Eventually, it'd be desirable to have an additional check with an appropriate error response in subiquity.

I've briefly explored some richer error messaging with @anasereijo, but ultimately decided to keep it short, based on @seb128's recommendation.

Screenshot From 2024-12-03 16-26-49

@sminez I mentioned that I'd try to refactor this somewhat old-timey Flutter code, but postponed it for now since it's (once again) more work than expected.

UDENG-5519

@d-loose d-loose added the snap/none Don't raise any snap release PRs label Dec 3, 2024
@d-loose d-loose marked this pull request as ready for review December 3, 2024 16:13
@d-loose d-loose requested a review from sminez December 4, 2024 09:08
@d-loose d-loose merged commit e0a1532 into canonical:main Dec 4, 2024
19 checks passed
@d-loose d-loose deleted the prevent-vfat-boot branch December 4, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
snap/none Don't raise any snap release PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants