[PATCH] Don't clear partitions containing the install media.

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

 



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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index e900d18..cf151d1 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -268,6 +268,10 @@ def clearPartitions(storage):
            part.disk.name not in storage.clearPartDisks:
             continue
 
+        # don't clear partitions holding install media
+        if part.name in storage.protectedPartitions:
+            continue
+
         # we don't want to fool with extended partitions, freespace, &c
         if part.partType not in (parted.PARTITION_NORMAL,
                                  parted.PARTITION_LOGICAL):
-- 
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