Take ignoredDisks into account on the filter screen as well.
If ignoredisk --disks= was given, of course there's not going to be anything
in exclusiveDisks. So don't rely solely on that.
---
iw/filter_gui.py | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
+ def _active(name):
+ if self.anaconda.id.storage.exclusiveDisks and
+ name in self.anaconda.id.storage.exclusiveDisks:
+ return True
+ elif self.anaconda.id.storage.ignoredDisks and
+ name not in self.anaconda.id.storage.ignoredDisks:
+ return True
+ else:
+ return False
+
for d in nonraids:
name = udev_device_get_name(d)
- active = name in self.anaconda.id.storage.exclusiveDisks
partedDevice = parted.Device(path="/dev/" + name)
d["XXX_SIZE"] = int(partedDevice.getSize())
@@ -566,7 +575,7 @@ class FilterWindow(InstallWindow):
else:
ident = udev_device_get_wwid(d)
@@ -603,7 +611,6 @@ class FilterWindow(InstallWindow):
# We only need to grab information from the first device in the set.
name = udev_device_get_name(mpath[0])
- active = name in self.anaconda.id.storage.exclusiveDisks
partedDevice = parted.Device(path="/dev/" + name)
mpath[0]["XXX_SIZE"] = int(partedDevice.getSize())
model = partedDevice.model
@@ -611,7 +618,7 @@ class FilterWindow(InstallWindow):
# However, we do need all the paths making up this multipath set.
paths = "
".join(map(udev_device_get_name, mpath))