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

[PATCH][f15, master] Don't clear partition 1 from mac disks even if it has no name. (#674105)



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

diff --git a/pyanaconda/storage/partitioning.py b/pyanaconda/storage/partitioning.py
index 65902ff..e8f3921 100644
--- a/pyanaconda/storage/partitioning.py
+++ b/pyanaconda/storage/partitioning.py
@@ -293,8 +293,7 @@ def shouldClear(device, clearPartType, clearPartDisks=None):
         # Never clear the special first partition on a Mac disk label, as that
         # holds the partition table itself.
         if device.disk.format.partedDisk.type == "mac" and \
-           device.partedPartition.number == 1 and \
-           device.partedPartition.name == "Apple":
+           device.partedPartition.number == 1:
             return False
 
         # If we got a list of disks to clear, make sure this one's on it
-- 
1.7.3.5


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