diff --git a/src/modules/partition/gui/CreatePartitionDialog.cpp b/src/modules/partition/gui/CreatePartitionDialog.cpp index 9a77a2a52..edfdf8cdf 100644 --- a/src/modules/partition/gui/CreatePartitionDialog.cpp +++ b/src/modules/partition/gui/CreatePartitionDialog.cpp @@ -26,6 +26,8 @@ #include #include +#include "GlobalStorage.h" +#include "JobQueue.h" // CalaPM #include @@ -35,6 +37,7 @@ // Qt #include +#include #include static QSet< FileSystem::Type > s_unmountableFS( @@ -52,6 +55,14 @@ CreatePartitionDialog::CreatePartitionDialog( Device* device, PartitionNode* par { m_ui->setupUi( this ); + QStringList mountPoints; + mountPoints << "/" << "/boot" << "/home" << "/opt" << "/usr" << "/var"; + if ( QDir( "/sys/firmware/efi/efivars" ).exists() ) + mountPoints << Calamares::JobQueue::instance()->globalStorage()->value( "efiSystemPartition" ).toString(); + mountPoints.removeDuplicates(); + mountPoints.sort(); + m_ui->mountPointComboBox->addItems( mountPoints ); + if ( device->partitionTable()->type() == PartitionTable::msdos ) initMbrPartitionTypeUi(); else diff --git a/src/modules/partition/gui/CreatePartitionDialog.ui b/src/modules/partition/gui/CreatePartitionDialog.ui index 2671ca9a6..2d07b7d58 100644 --- a/src/modules/partition/gui/CreatePartitionDialog.ui +++ b/src/modules/partition/gui/CreatePartitionDialog.ui @@ -130,36 +130,6 @@ -1 - - - / - - - - - /boot - - - - - /home - - - - - /opt - - - - - /usr - - - - - /var - - diff --git a/src/modules/partition/gui/EditExistingPartitionDialog.cpp b/src/modules/partition/gui/EditExistingPartitionDialog.cpp index 4512a6f69..455651a65 100644 --- a/src/modules/partition/gui/EditExistingPartitionDialog.cpp +++ b/src/modules/partition/gui/EditExistingPartitionDialog.cpp @@ -27,6 +27,8 @@ #include #include +#include "GlobalStorage.h" +#include "JobQueue.h" // CalaPM #include @@ -35,6 +37,7 @@ // Qt #include +#include EditExistingPartitionDialog::EditExistingPartitionDialog( Device* device, Partition* partition, QWidget* parentWidget ) : QDialog( parentWidget ) @@ -45,6 +48,14 @@ EditExistingPartitionDialog::EditExistingPartitionDialog( Device* device, Partit { m_ui->setupUi( this ); + QStringList mountPoints; + mountPoints << "/" << "/boot" << "/home" << "/opt" << "/usr" << "/var"; + if ( QDir( "/sys/firmware/efi/efivars" ).exists() ) + mountPoints << Calamares::JobQueue::instance()->globalStorage()->value( "efiSystemPartition" ).toString(); + mountPoints.removeDuplicates(); + mountPoints.sort(); + m_ui->mountPointComboBox->addItems( mountPoints ); + QColor color = ColorUtils::colorForPartition( m_partition ); m_partitionSizeController->init( m_device, m_partition, color ); m_partitionSizeController->setSpinBox( m_ui->sizeSpinBox ); diff --git a/src/modules/partition/gui/EditExistingPartitionDialog.ui b/src/modules/partition/gui/EditExistingPartitionDialog.ui index 3618302b3..22aa82b02 100644 --- a/src/modules/partition/gui/EditExistingPartitionDialog.ui +++ b/src/modules/partition/gui/EditExistingPartitionDialog.ui @@ -105,36 +105,6 @@ -1 - - - / - - - - - /boot - - - - - /home - - - - - /opt - - - - - /usr - - - - - /var - -