From 4121a108ab555e3f5ea8f3f101f1025d32ba10ca Mon Sep 17 00:00:00 2001 From: Caio Carvalho Date: Mon, 30 Apr 2018 00:40:54 -0300 Subject: [PATCH] [partition] Ignoring LVM devices in PartUtils::getDevices to prevent installing bootloader in LVM VG. --- src/modules/partition/core/DeviceList.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/partition/core/DeviceList.cpp b/src/modules/partition/core/DeviceList.cpp index d7e6bab29..1a070773e 100644 --- a/src/modules/partition/core/DeviceList.cpp +++ b/src/modules/partition/core/DeviceList.cpp @@ -152,6 +152,11 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize ) cDebug() << " .. Removing too-small" << it; it = erase(devices, it ); } + else if ( (*it)->type() == Device::LVM_Device ) + { + cDebug() << " .. Removing LVM device from list " << it; + it = erase(devices, it ); + } else ++it;