diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 91ea1d22f..48481794d 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -32,6 +32,7 @@ #include #include +#include #include ChoicePage::ChoicePage( QWidget* parent ) @@ -256,6 +257,17 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn alongsideButton->hide(); } + bool isEfi = QDir( "/sys/firmware/efi/efivars" ).exists(); + bool efiSystemPartitionFound = !m_core->efiSystemPartitions().isEmpty(); + + if ( isEfi && !efiSystemPartitionFound ) + { + cDebug() << "WARNING: system is EFI but there's not EFI system partition, " + "DISABLING alongside and replace features."; + alongsideButton->hide(); + replaceButton->hide(); + } + QFrame* hLine = new QFrame; hLine->setFrameStyle( QFrame::HLine ); m_itemsLayout->addWidget( hLine );