Skip to content

Partitioning: Enhance error message - #147

Open
alosslessdev wants to merge 9 commits into
CachyOS:cachyos-devfrom
alosslessdev:patch-1
Open

Partitioning: Enhance error message#147
alosslessdev wants to merge 9 commits into
CachyOS: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

ptr1337 commented Jan 21, 2026

Copy link
Copy Markdown
Member

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

alosslessdev commented Jan 22, 2026

Copy link
Copy Markdown
Author

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

@ventureoo ventureoo left a comment

Copy link
Copy Markdown
Member

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread src/modules/partition/gui/ChoicePage.cpp Outdated
Comment thread src/modules/partition/gui/ChoicePage.cpp Outdated
ptr1337 and others added 3 commits May 24, 2026 20:36
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

4 participants