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

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



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


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