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

[PATCH 3/5] Don't clear immutable devices (#593642)



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

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 00c1986..7346feb 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -322,6 +322,10 @@ def shouldClear(device, clearPartType, clearPartDisks=None):
     if device.protected:
         return False
 
+    # Don't clear immutable devices.
+    if device.immutable:
+        return False
+
     # TODO: do platform-specific checks on ia64, pSeries, iSeries, mac
 
     return True
-- 
1.7.0.1


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