Disable alongside and replace features on EFI system without ESP.
This commit is contained in:
parent
b507a0e2b9
commit
195b585282
@ -32,6 +32,7 @@
|
||||
|
||||
#include <QBoxLayout>
|
||||
#include <QButtonGroup>
|
||||
#include <QDir>
|
||||
#include <QLabel>
|
||||
|
||||
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 );
|
||||
|
Loading…
Reference in New Issue
Block a user