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