mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
Disable alongside and replace features on EFI system without ESP.
This commit is contained in:
parent
b507a0e2b9
commit
195b585282
1 changed files with 12 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue