summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-05-11 14:45:28 -0400
committerChris Lumens <clumens@redhat.com>2009-05-11 14:46:46 -0400
commit7c5a7d1d30f0d2cf61e2f7a1891290e70ffcbd1e (patch)
tree6413c9b3e41cb6e9311b57fd84b0f8405af3602e /storage
parent5c5fe893b6cfe9edbabf7945b51730078b6ac1b0 (diff)
downloadanaconda-7c5a7d1d30f0d2cf61e2f7a1891290e70ffcbd1e.tar.gz
anaconda-7c5a7d1d30f0d2cf61e2f7a1891290e70ffcbd1e.tar.xz
anaconda-7c5a7d1d30f0d2cf61e2f7a1891290e70ffcbd1e.zip
If clearPartType is None, don't attempt to clear a device (#499321).
Diffstat (limited to 'storage')
-rw-r--r--storage/partitioning.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/partitioning.py b/storage/partitioning.py
index 1a6ee0ef3..8bdac9bcf 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -253,7 +253,7 @@ def shouldClear(part, clearPartType, clearPartDisks=None, protectedPartitions=No
if not isinstance(part, PartitionDevice):
return False
- if clearPartType == CLEARPART_TYPE_NONE:
+ if not clearPartType in [CLEARPART_TYPE_LINUX, CLEARPART_TYPE_ALL]:
return False
# Never clear the special first partition on a Mac disk label, as that