[PATCH 1/4] When in simple mode show BIOS RAID sets in basic page

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

 



OEM's routinely ship systems with BIOS RAID enabled, so we should support
these in basic mode to.
---
 iw/filter_gui.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/iw/filter_gui.py b/iw/filter_gui.py
index 6145cd4..a927e1e 100644
--- a/iw/filter_gui.py
+++ b/iw/filter_gui.py
@@ -145,6 +145,10 @@ class Callbacks(object):
         return self.isMember(model.get_value(iter, OBJECT_COL)) and \
                model.get_value(iter, 1)
 
+class SimpleCallbacks(Callbacks):
+    def isMember(self, info):
+        return info and not isMultipath(info) and not isOther(info)
+
 class RAIDCallbacks(Callbacks):
     def isMember(self, info):
         return info and (isRAID(info) or isCCISS(info))
@@ -407,7 +411,12 @@ class FilterWindow(InstallWindow):
         self._cachedRaidDevices.extend(raids)
 
     def _makeBasic(self):
-        np = NotebookPage(self.store, "basic", self.xml, Callbacks(self.xml))
+        if self.anaconda.id.simpleFilter:
+            np = NotebookPage(self.store, "basic", self.xml,
+                              SimpleCallbacks(self.xml))
+        else:
+            np = NotebookPage(self.store, "basic", self.xml,
+                              Callbacks(self.xml))
 
         np.ds.addColumn(_("Model"), MODEL_COL)
         np.ds.addColumn(_("Capacity"), CAPACITY_COL)
-- 
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux