Fixup operations order when autopartitioning.
This commit is contained in:
parent
0426d7fd35
commit
25c2b7265b
@ -167,11 +167,11 @@ EraseDiskPage::doAutopartition( Device* dev )
|
||||
lastSector
|
||||
);
|
||||
m_core->createPartition( dev, efiPartition );
|
||||
PartitionInfo::setFormat( efiPartition, true );
|
||||
PartitionInfo::setMountPoint( efiPartition, Calamares::JobQueue::instance()
|
||||
->globalStorage()
|
||||
->value( "efiSystemPartition" )
|
||||
.toString() );
|
||||
PartitionInfo::setFormat( efiPartition, true );
|
||||
first_free_sector = lastSector + 1;
|
||||
}
|
||||
else
|
||||
@ -187,9 +187,9 @@ EraseDiskPage::doAutopartition( Device* dev )
|
||||
first_free_sector,
|
||||
dev->totalSectors() - 1 //last sector
|
||||
);
|
||||
PartitionInfo::setMountPoint( rootPartition, "/" );
|
||||
PartitionInfo::setFormat( rootPartition, true );
|
||||
m_core->createPartition( dev, rootPartition );
|
||||
PartitionInfo::setFormat( rootPartition, true );
|
||||
PartitionInfo::setMountPoint( rootPartition, "/" );
|
||||
|
||||
updatePreviews();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user