[PATCH 3/7] Drop btrfs-specific raid level "single" for non-btrfs. (#959688)

David Lehman dlehman at redhat.com
Wed May 15 18:39:41 UTC 2013


This is mostly for switching a device from btrfs to lvm.
---
 pyanaconda/ui/gui/spokes/custom.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 75b7556..1dbfee6 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1241,6 +1241,9 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
         changed_container_encrypted = (container_encrypted != old_container_encrypted)
 
         container_raid_level = self._device_container_raid_level
+        if container_raid_level == "single" and device_type != DEVICE_TYPE_BTRFS:
+            container_raid_level = None
+
         log.debug("old container raid level: %s" % old_container_raid_level)
         log.debug("new container raid level: %s" % container_raid_level)
         changed_container_raid_level = (old_container_raid_level != container_raid_level)
-- 
1.8.1.4



More information about the anaconda-patches mailing list