--- 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