mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-25 08:28:22 -04:00
Correct operations order in EraseDiskPage.
This commit is contained in:
parent
25c2b7265b
commit
cf5e137947
1 changed files with 2 additions and 2 deletions
|
@ -166,12 +166,12 @@ EraseDiskPage::doAutopartition( Device* dev )
|
|||
first_free_sector,
|
||||
lastSector
|
||||
);
|
||||
m_core->createPartition( dev, efiPartition );
|
||||
PartitionInfo::setFormat( efiPartition, true );
|
||||
PartitionInfo::setMountPoint( efiPartition, Calamares::JobQueue::instance()
|
||||
->globalStorage()
|
||||
->value( "efiSystemPartition" )
|
||||
.toString() );
|
||||
m_core->createPartition( dev, efiPartition );
|
||||
first_free_sector = lastSector + 1;
|
||||
}
|
||||
else
|
||||
|
@ -187,9 +187,9 @@ EraseDiskPage::doAutopartition( Device* dev )
|
|||
first_free_sector,
|
||||
dev->totalSectors() - 1 //last sector
|
||||
);
|
||||
m_core->createPartition( dev, rootPartition );
|
||||
PartitionInfo::setFormat( rootPartition, true );
|
||||
PartitionInfo::setMountPoint( rootPartition, "/" );
|
||||
m_core->createPartition( dev, rootPartition );
|
||||
|
||||
updatePreviews();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue