[PATCH 2/2] If clearPartType is None, don't attempt to clear a device (#499321).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 1a6ee0e..8bdac9b 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
-- 
1.6.1.3

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux