mirror of
https://github.com/parchlinux/calamares.git
synced 2025-02-24 19:05:46 -05:00
Use device's immutable copy instead of rescanning.
This commit is contained in:
parent
c316d22b08
commit
64db6d5ba1
1 changed files with 1 additions and 2 deletions
|
@ -700,7 +700,6 @@ QList< PartitionCoreModule::SummaryInfo >
|
|||
PartitionCoreModule::createSummaryInfo() const
|
||||
{
|
||||
QList< SummaryInfo > lst;
|
||||
CoreBackend* backend = CoreBackendManager::self()->backend();
|
||||
for ( auto deviceInfo : m_deviceInfos )
|
||||
{
|
||||
if ( !deviceInfo->isDirty() )
|
||||
|
@ -709,7 +708,7 @@ PartitionCoreModule::createSummaryInfo() const
|
|||
summaryInfo.deviceName = deviceInfo->device->name();
|
||||
summaryInfo.deviceNode = deviceInfo->device->deviceNode();
|
||||
|
||||
Device* deviceBefore = backend->scanDevice( deviceInfo->device->deviceNode() );
|
||||
Device* deviceBefore = deviceInfo->immutableDevice.data();
|
||||
summaryInfo.partitionModelBefore = new PartitionModel;
|
||||
summaryInfo.partitionModelBefore->init( deviceBefore, m_osproberLines );
|
||||
// Make deviceBefore a child of partitionModelBefore so that it is not
|
||||
|
|
Loading…
Add table
Reference in a new issue