[PATCH 3/7] Do not include disks that have 0 size (#903131, #904977).
Chris Lumens
clumens at redhat.com
Wed Jan 30 21:18:17 UTC 2013
---
pyanaconda/ui/gui/spokes/storage.py | 1 +
pyanaconda/ui/tui/spokes/storage.py | 1 +
2 files changed, 2 insertions(+)
diff --git a/pyanaconda/ui/gui/spokes/storage.py b/pyanaconda/ui/gui/spokes/storage.py
index 58ebf85..0155c83 100644
--- a/pyanaconda/ui/gui/spokes/storage.py
+++ b/pyanaconda/ui/gui/spokes/storage.py
@@ -96,6 +96,7 @@ def getDisks(devicetree, fake=False):
if not fake:
devices = devicetree.devices + devicetree._hidden
disks = [d for d in devices if d.isDisk and
+ d.size > 0 and
not d.format.hidden and
not (d.protected and
d.removable)]
diff --git a/pyanaconda/ui/tui/spokes/storage.py b/pyanaconda/ui/tui/spokes/storage.py
index 292ffc2..2cfff27 100644
--- a/pyanaconda/ui/tui/spokes/storage.py
+++ b/pyanaconda/ui/tui/spokes/storage.py
@@ -74,6 +74,7 @@ class FakeDisk(object):
def getDisks(devicetree, fake=False):
if not fake:
disks = [d for d in devicetree.devices if d.isDisk and
+ d.size > 0 and
not d.format.hidden and
not (d.protected and
d.removable)]
--
1.7.11.2
More information about the anaconda-patches
mailing list