Skip to content

Partitioning: Enhance error message#147

Open
alosslessdev wants to merge 6 commits intoCachyOS:cachyos-devfrom
alosslessdev:patch-1
Open

Partitioning: Enhance error message#147
alosslessdev wants to merge 6 commits intoCachyOS:cachyos-devfrom
alosslessdev:patch-1

Conversation

@alosslessdev
Copy link
Copy Markdown

I have found the minimum size required to be 2 gb. Also grammar fix

I have found the minimum size required to be 2 gb. Also grammar fix
@alosslessdev alosslessdev changed the title Enhance error message Parritioning: Enhance error message Jan 20, 2026
@alosslessdev alosslessdev changed the title Parritioning: Enhance error message Partitioning: Enhance error message Jan 20, 2026
@ptr1337
Copy link
Copy Markdown
Member

ptr1337 commented Jan 21, 2026

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".
At limine we increased the size to 4GB now /boot, due limine-snapper-sync needs a lot of space.

@alosslessdev
Copy link
Copy Markdown
Author

alosslessdev commented Jan 22, 2026

Can we say that the minimum size is 4 GB to allow the user to change bootloaders?

Copy link
Copy Markdown
Member

@ventureoo ventureoo left a comment

Choose a reason for hiding this comment

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

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 );

ventureoo

This comment was marked as duplicate.

@alosslessdev
Copy link
Copy Markdown
Author

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

@alosslessdev alosslessdev requested a review from ventureoo April 26, 2026 17:10
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.

3 participants