if self.stage2_is_valid_stage1 and device == self.stage2_device:
# special case
@@ -598,7 +592,7 @@ class BootLoader(object):
self.warnings = []
return valid
- if not self._device_type_match(device, device_types):
+ if not self._device_type_match(device, constraint["device_types"]):
self.errors.append(_("The %s cannot be of type %s")
% (description, device.type))
valid = False
@@ -612,14 +606,15 @@ class BootLoader(object):
valid = False
if not self._is_valid_location(device,
- max_mb=max_end_mb,
+ max_mb=constraint["max_end_mb"],
desc=description):
valid = False
- if not self._is_valid_md(device, device_types=device_types,
- raid_levels=raid_levels,
- metadata=raid_metadata,
- member_types=raid_member_types,
+ if not self._is_valid_md(device,
+ device_types=constraint["device_types"],
+ raid_levels=constraint["raid_levels"],
+ metadata=constraint["raid_metadata"],
+ member_types=constraint["raid_member_types"],
desc=description):
valid = False
@@ -632,8 +627,8 @@ class BootLoader(object):
valid = False
if not self._is_valid_format(device,
- format_types=format_types,
- mountpoints=mountpoints,
+ format_types=constraint["format_types"],
+ mountpoints=constraint["mountpoints"],
desc=description):
valid = False
@@ -654,7 +649,7 @@ class BootLoader(object):
of all valid target devices, sorted by device type, then sorted
according to our drive ordering.
"""
- device_types = self.platform._boot_stage1_device_types
+ device_types = self.platform.bootStage1ConstraintDict["device_types"]
slots = [[] for t in device_types]
for device in self.storage.devices:
idx = self._device_type_index(device, device_types)
diff --git a/pyanaconda/platform.py b/pyanaconda/platform.py
index 93cd2f8..893a3c3 100644
--- a/pyanaconda/platform.py
+++ b/pyanaconda/platform.py
@@ -75,6 +75,18 @@ class Platform(object):
"""The default disklabel type for this architecture."""
return self.diskLabelTypes[0]
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list