[PATCH rhel6-branch 2/2] Ignore immutable disks in clearPartitions (#657115)

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

 



Related: rhbz#614812
Resolves: rhbz#657115
---
 storage/partitioning.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index e12b3e3..6e9b1ae 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -410,6 +410,10 @@ def clearPartitions(storage):
            (storage.clearPartDisks and disk.name not in storage.clearPartDisks):
             continue
 
+        # Don't touch immutable disks
+        if disk.immutable:
+            continue
+
         # don't reinitialize the disklabel if the disk contains install media
         if filter(lambda p: p.dependsOn(disk), storage.protectedDevices):
             continue
-- 
1.7.3.2

_______________________________________________
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