--- storage/devicetree.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/storage/devicetree.py b/storage/devicetree.py index 155b1c9..b7c40f9 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -758,6 +758,8 @@ class DeviceTree(object): if isinstance(device, PartitionDevice) and \ device.disk == dev.disk: device.updateName() + elif moddisk and isinstance(dev, LVMLogicalVolumeDevice) and dev.vg: + dev.vg._removeLogVol(dev) self._devices.remove(dev) log.debug("removed %s %s (id %d) from device tree" % (dev.type, @@ -1810,7 +1812,6 @@ class DeviceTree(object): log.info("error removing lv %s from " "inconsistent/incomplete vg %s" % (lv.lvname, device.vg.name)) - device.vg._removeLogVol(lv) self._removeDevice(lv) reinitializeVG(device.vg) @@ -1818,7 +1819,7 @@ class DeviceTree(object): elif not device.complete: # ignore all the lvs. for lv in device.vg.lvs: - self._removeDevice(lv) + self._removeDevice(lv, moddisk=False) lvm.lvm_cc_addFilterRejectRegexp(lv.name) # ignore the vg self._removeDevice(device.vg) -- 1.6.0.6 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list