[PATCH 11/11] Treat disks with unrecognized or no formatting as empty.

David Lehman dlehman at redhat.com
Tue Sep 25 20:33:36 UTC 2012


---
 pyanaconda/storage/__init__.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index a949633..48b5afd 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -934,6 +934,8 @@ class Storage(object):
                         fs_free += partition.format.free
             elif hasattr(disk.format, "free"):
                 fs_free = disk.format.free
+            elif disk.format.type is None:
+                disk_free = disk.size
 
             free[disk.name] = (Size(spec="%f mb" % disk_free),
                                Size(spec="%f mb" % fs_free))
-- 
1.7.7.6



More information about the anaconda-patches mailing list