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 <QBoxLayout>
|
||||||
#include <QButtonGroup>
|
#include <QButtonGroup>
|
||||||
|
#include <QDir>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
ChoicePage::ChoicePage( QWidget* parent )
|
ChoicePage::ChoicePage( QWidget* parent )
|
||||||
@ -256,6 +257,17 @@ ChoicePage::init( PartitionCoreModule* core, const OsproberEntryList& osproberEn
|
|||||||
alongsideButton->hide();
|
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;
|
QFrame* hLine = new QFrame;
|
||||||
hLine->setFrameStyle( QFrame::HLine );
|
hLine->setFrameStyle( QFrame::HLine );
|
||||||
m_itemsLayout->addWidget( hLine );
|
m_itemsLayout->addWidget( hLine );
|
||||||
|
Loading…
Reference in New Issue
Block a user