[PATCH 01/13] Make sure a disk is partitioned before treating it as such. (#849707)

David Lehman dlehman at redhat.com
Wed Aug 29 00:00:40 UTC 2012


---
 pyanaconda/storage/__init__.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index 973b9f2..ef4aed7 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -724,9 +724,10 @@ class Storage(object):
                 if not device.format.exists:
                     return False
 
-                for partition in self.devicetree.getChildren(device):
-                    if not (partition.isMagic or self.shouldClear(partition)):
-                        return False
+                if device.partitioned:
+                    for partition in self.devicetree.getChildren(device):
+                        if not (partition.isMagic or self.shouldClear(partition)):
+                            return False
 
         # the only devices we want to clear when clearPartType is
         # CLEARPART_TYPE_NONE are uninitialized disks in clearPartDisks, and
-- 
1.7.7.6



More information about the anaconda-patches mailing list