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

[f16-branch] Do not show loop devices in the filtering UI.



Previously, getting the parted object for a loop device failed and so we
skipped it. That no longer happens, parted returns a valid object, so we
need to explicitly filter loop devices out.

Resolves: rhbz#739828
---
 pyanaconda/iw/filter_gui.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/iw/filter_gui.py b/pyanaconda/iw/filter_gui.py
index a2aef98..7acf30e 100644
--- a/pyanaconda/iw/filter_gui.py
+++ b/pyanaconda/iw/filter_gui.py
@@ -412,6 +412,7 @@ class FilterWindow(InstallWindow):
     def _getFilterDisks(self):
         """ Return a list of disks to pass to MultipathTopology. """
         return filter(lambda d: udev_device_is_disk(d) and \
+                                not udev_device_is_loop(d) and \
                                 not udev_device_is_dm(d) and \
                                 not udev_device_is_md(d) and \
                                 not udev_device_get_md_container(d),
-- 
1.7.6


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