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

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

 



The by-uuid lookup was returning a loop device since it has
the same contents as the dm device, which led to us not ever
adding live-osimg-min to the device tree for live installs.
Since UUIDs are not necessarily device-specific (as evidenced
by the case of fs UUID on loop device and same fs UUID on dm
device representing the contents of said loop device) we
can't rely on them for dm device lookups unless we
differentiate between device UUIDs and formatting UUIDs.
---
 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:
-- 
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux