diff --git a/src/modules/partition/core/DeviceList.cpp b/src/modules/partition/core/DeviceList.cpp index f7d1d4835..d58b22868 100644 --- a/src/modules/partition/core/DeviceList.cpp +++ b/src/modules/partition/core/DeviceList.cpp @@ -138,7 +138,7 @@ getDevices( DeviceType which ) #else // Safe partitioning auto removeInAllModes = []( DeviceList& l, DeviceList::iterator& it) { return erase(l, it); }; - auto& removeInSafeMode = removeFromAll; + auto& removeInSafeMode = removeInAllModes; #endif cDebug() << "Removing unsuitable devices:" << devices.count() << "candidates.";