From e85b2d164fd0dd1120e24327947f8b27189c4176 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 28 Nov 2014 15:51:59 +0100 Subject: [PATCH] Hook up ClearMountsJob in PartitionCoreModule. --- src/modules/partition/core/PartitionCoreModule.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/modules/partition/core/PartitionCoreModule.cpp b/src/modules/partition/core/PartitionCoreModule.cpp index d8921899f..611b2c1f9 100644 --- a/src/modules/partition/core/PartitionCoreModule.cpp +++ b/src/modules/partition/core/PartitionCoreModule.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -279,12 +280,19 @@ PartitionCoreModule::jobs() const { QList< Calamares::job_ptr > lst; QList< Device* > devices; + + for ( auto info : m_deviceInfos ) + { + lst << Calamares::job_ptr( new ClearMountsJob( info->device.data() ) ); + } + for ( auto info : m_deviceInfos ) { lst << info->jobs; devices << info->device.data(); } lst << Calamares::job_ptr( new FillGlobalStorageJob( devices, m_bootLoaderInstallPath ) ); + return lst; }