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

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack.

On Thu, 13 May 2010, David Lehman wrote:

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:


- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAkv0p8sACgkQ5hsjjIy1Vkn/CQCg7uOWzN+NKTyDVb2YRhZ42eyF
4I0An03xhU+1MHax+uzr516HFWSH4ccS
=+iU+
-----END PGP SIGNATURE-----

_______________________________________________
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