Don't try to zero out extended partitions.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Looks good. On rhel6-branch, make sure the commit msg references a RHEL-6 BZ,
please.
On Thu, 22 Apr 2010, David Lehman wrote:
---
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:
- --
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkvQvwEACgkQ5hsjjIy1Vkk03QCgzzJpDtjev3 lHfy7f7G2xdViP
J4cAoPHeFw4rakCyIa+ql5KCaaKK/iEx
=1MFr
-----END PGP SIGNATURE-----
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|