[PATCH] Honor --initlabel option to clearpart kickstart directive.

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

 



Although counterintuitive, it appears that this is all it
does.
---
 storage/partitioning.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index c104401..90ca3b7 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -270,6 +270,10 @@ def clearPartitions(storage):
                  part.partedPartition.getFlag(parted.PARTITION_SWAP):
                 clear = True
 
+        if part.name in storage.protectedPartitions and \
+           not storage.reinitializeDisks:
+            clear = False
+
         # TODO: do platform-specific checks on ia64, pSeries, iSeries, mac
 
         if not clear:
-- 
1.6.0.6

_______________________________________________
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