diff --git a/src/modules/partition/gui/PartitionPage.cpp b/src/modules/partition/gui/PartitionPage.cpp index 175ad0f47..7039219d5 100644 --- a/src/modules/partition/gui/PartitionPage.cpp +++ b/src/modules/partition/gui/PartitionPage.cpp @@ -42,6 +42,7 @@ #include #include #include +#include PartitionPage::PartitionPage( PartitionCoreModule* core, QWidget* parent ) : QWidget( parent ) @@ -77,6 +78,11 @@ PartitionPage::PartitionPage( PartitionCoreModule* core, QWidget* parent ) connect( m_ui->editButton, &QAbstractButton::clicked, this, &PartitionPage::onEditClicked ); connect( m_ui->deleteButton, &QAbstractButton::clicked, this, &PartitionPage::onDeleteClicked ); + if ( QDir( "/sys/firmware/efi/efivars" ).exists() ) { + m_ui->bootLoaderComboBox->setDisabled( true ); + m_ui->label_3->setDisabled( true ); + } + CALAMARES_RETRANSLATE( m_ui->retranslateUi( this ); ) }