[PATCH 2/5] Fix traceback when switching device type to BTRFS.

David Lehman dlehman at redhat.com
Thu Sep 6 22:02:55 UTC 2012


BTRFS default RAID level is single, so we need that to be a key in
the raid_level_features dict.
---
 pyanaconda/ui/gui/spokes/custom.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 117586b..3d325cb 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -86,7 +86,8 @@ raid_level_features = {"raid0": ["Performance"],
                        "raid10": ["Performance", "Redundancy"],
                        "raid4": ["Performance", "Error"],
                        "raid5": ["Performance", "DistError"],
-                       "raid6": ["Performance", "RedundantError"]}
+                       "raid6": ["Performance", "RedundantError"],
+                       "single": []}
 
 # disabled features by raid_level
 raid_disabled_features = {"raid1": ["Error", "DistError", "RedundantError"]}
-- 
1.7.7.6



More information about the anaconda-patches mailing list