mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 02:15:36 -04:00
Refactor check for EFI system.
The TODO stands, to delegate this to KPMCore.
This commit is contained in:
parent
106f18e074
commit
7e66499f36
10 changed files with 31 additions and 21 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
#include "core/ColorUtils.h"
|
||||
#include "core/PartitionInfo.h"
|
||||
#include "core/PartUtils.h"
|
||||
#include "core/KPMHelpers.h"
|
||||
#include "gui/PartitionSizeController.h"
|
||||
|
||||
|
@ -66,12 +67,12 @@ CreatePartitionDialog::CreatePartitionDialog( Device* device, PartitionNode* par
|
|||
m_ui->encryptWidget->hide();
|
||||
|
||||
QStringList mountPoints = { "/", "/boot", "/home", "/opt", "/usr", "/var" };
|
||||
if ( QDir( "/sys/firmware/efi/efivars" ).exists() )
|
||||
if ( PartUtils::isEfiSystem() )
|
||||
mountPoints << Calamares::JobQueue::instance()->globalStorage()->value( "efiSystemPartition" ).toString();
|
||||
mountPoints.removeDuplicates();
|
||||
mountPoints.sort();
|
||||
m_ui->mountPointComboBox->addItems( mountPoints );
|
||||
|
||||
|
||||
if ( device->partitionTable()->type() == PartitionTable::msdos ||
|
||||
device->partitionTable()->type() == PartitionTable::msdos_sectorbased )
|
||||
initMbrPartitionTypeUi();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue