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

[PATCH 4/6] Display unpartitioned disks in main partitioning gui. (#588637)



Disks that are components of a biosraid array or multipath device will
not be displayed.
---
 iw/partition_gui.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index 9496e4e..aef98b4 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -1017,6 +1017,11 @@ class PartitionWindow(InstallWindow):
 
         # now normal partitions
         disks = self.storage.partitioned
+        # also include unpartitioned disks that aren't mpath or biosraid
+        whole = filter(lambda d: not d.partitioned and not d.format.hidden,
+                       self.storage.disks)
+        disks.extend(whole)
+        disks.sort(key=lambda d: d.name)
         drvparent = self.tree.append(None)
         self.tree[drvparent]['Device'] = _("Hard Drives")
         for disk in disks:
-- 
1.6.6.1


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