Partitioning: Enhance error message - #147
Conversation
I have found the minimum size required to be 2 gb. Also grammar fix
It depends on the bootloader. When doing manual partitioning it will only "warn". |
|
Can we say that the minimum size is 4 GB to allow the user to change bootloaders? |
ventureoo
left a comment
There was a problem hiding this comment.
Recommended size is depend on selected bootloader by user, so you should query it to print accurate warning:
diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp
index 0fac14f3b..c6b2aacd9 100644
--- a/src/modules/partition/gui/ChoicePage.cpp
+++ b/src/modules/partition/gui/ChoicePage.cpp
@@ -1253,7 +1253,9 @@ ChoicePage::setupEfiSystemPartitionSelector()
if ( !PartUtils::isEfiFilesystemRecommendedSize( efiPartition ) )
{
text += QStringLiteral( "<br/><font color=\"red\">" )
- + tr( "The EFI system partition is too small, please use manual partition." )
+ + tr( "The EFI system partition is too small, please use manual partition ",
+ "and increase its size to %1 MB or greater")
+ .arg(PartUtils::efiFilesystemRecommendedSize() / 1024 / 1024)
+ QStringLiteral( "</font>" );
}
m_efiLabel->setText( text );
done |
There was a problem hiding this comment.
Pull request overview
This PR enhances the EFI system partition warning shown during partition selection by adding the recommended minimum size to the message.
Changes:
- Updates the “EFI system partition is too small” warning text.
- Attempts to include the configured recommended EFI partition size in MB.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
I have found the minimum size required to be 2 gb. Also grammar fix