[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [PATCH][f15, master] Do all dm handling inside addUdevDMDevice. (#672030)



On 02/19/2011 06:04 PM, David Lehman wrote:
---
  pyanaconda/storage/devicetree.py |    8 +-------
  1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/pyanaconda/storage/devicetree.py b/pyanaconda/storage/devicetree.py
index c74a23c..a57e5e1 100644
--- a/pyanaconda/storage/devicetree.py
+++ b/pyanaconda/storage/devicetree.py
@@ -954,13 +954,7 @@ class DeviceTree(object):
              device = self.addUdevLVDevice(info)
          elif udev_device_is_dm(info):
              log.debug("%s is a device-mapper device" % name)
-            # try to look up the device
-            if uuid:
-                # try to find the device by uuid
-                device = self.getDeviceByUuid(uuid)
-
-            if device is None:
-                device = self.addUdevDMDevice(info)
+            device = self.addUdevDMDevice(info)
          elif udev_device_is_md(info):
              log.debug("%s is an md device" % name)
              if uuid:

Ack.

Al_


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]