Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu Kernel Team (http://www.linux-archive.org/ubuntu-kernel-team/)
-   -   Collect free space info for unpartitioned disks, too. (http://www.linux-archive.org/ubuntu-kernel-team/675973-collect-free-space-info-unpartitioned-disks-too.html)

David Lehman 06-22-2012 08:22 PM

Collect free space info for unpartitioned disks, too.
 
---
pyanaconda/storage/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index 00c8486..60acb4d 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -753,7 +753,7 @@ class Storage(object):
clearPartType = self.config.clearPartType

free = {}
- for disk in [d for d in disks if d.partitioned]:
+ for disk in disks:
should_clear = shouldClear(disk, clearPartType, [disk.name])
if should_clear:
free[disk.name] = (Size(spec="%f mb" % disk.size), 0)
--
1.7.7.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 09:55 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.