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

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

 



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

_______________________________________________
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