[PATCH 1/3] Don't try to zero out extended partitions.

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

 



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

diff --git a/storage/devices.py b/storage/devices.py
index 7afb08e..7f1cc0f 100644
--- a/storage/devices.py
+++ b/storage/devices.py
@@ -1271,9 +1271,10 @@ class PartitionDevice(StorageDevice):
                 self.disk.format.removePartition(part)
                 raise
 
-            # Ensure old metadata which lived in freespace so did not get
-            # explictly destroyed by a destroyformat action gets wiped
-            DeviceFormat(device=self.path, exists=True).destroy()
+            if not self.isExtended:
+                # Ensure old metadata which lived in freespace so did not get
+                # explictly destroyed by a destroyformat action gets wiped
+                DeviceFormat(device=self.path, exists=True).destroy()
         except Exception:
             raise
         else:
-- 
1.6.2.5

_______________________________________________
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