[PATCH 1/4] Add an entry to the raid level combo for btrfs' single.
David Lehman
dlehman at redhat.com
Fri Apr 5 17:12:21 UTC 2013
Single means no raid features.
---
pyanaconda/ui/gui/spokes/custom.glade | 6 ++++++
pyanaconda/ui/gui/spokes/custom.py | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.glade b/pyanaconda/ui/gui/spokes/custom.glade
index 98f4911..a91e505 100644
--- a/pyanaconda/ui/gui/spokes/custom.glade
+++ b/pyanaconda/ui/gui/spokes/custom.glade
@@ -2024,6 +2024,12 @@ until you click on the main menu's 'Begin Installation' button.</property>
</columns>
<data>
<row>
+ <col id="0" translatable="yes">Single <span foreground="grey">(No RAID)</span></col>
+ <col id="1">False</col>
+ <col id="2">False</col>
+ <col id="3">True</col>
+ </row>
+ <row>
<col id="0" translatable="yes">RAID0 <span foreground="grey">(Performance)</span></col>
<col id="1">True</col>
<col id="2">True</col>
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 3b98811..ddeee30 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1345,7 +1345,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
# Set a default RAID level in the combo.
for (i, row) in enumerate(raid_combo.get_model()):
- if row[0].startswith(raid_level.upper()):
+ if row[0].upper().startswith(raid_level.upper()):
raid_combo.set_active(i)
break
--
1.8.1.4
More information about the anaconda-patches
mailing list