diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-05-12 21:38:03 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-05-12 21:57:19 +0200 |
commit | a053a48bfc842c4a0491af16ed9fa5d001113a98 (patch) | |
tree | 4e6722660c1ab36a72cfc5e4f3f394a263faa1e2 /storage/devicetree.py | |
parent | 41c5bae3c57f2bbf5f8527c02e9bce7200c66876 (diff) | |
download | anaconda-a053a48bfc842c4a0491af16ed9fa5d001113a98.tar.gz anaconda-a053a48bfc842c4a0491af16ed9fa5d001113a98.tar.xz anaconda-a053a48bfc842c4a0491af16ed9fa5d001113a98.zip |
Determine if an mdmember is biosraid earlier (#586298)
Currently kickstart installs to Intel (mdraid using) BIOS RAId sets
with "clearpart --all" do not work.
handleUdevDeviceFormat() calls shouldClear() to determine if format
specific handling needs to be done and shouldClear() depends on the
biosraid flag of the mdmember format to decide wether or not to
clear mdmember formats with --all (through the format.hidden attribute).
However the biosraid flag gets set by the format specific handling
which gets skipped in this case because it has not been set yet. This
patch fixes this by setting the biosraid property of the mdmember
format earlier by passing it in into its __init__ method, which
seems a much cleaner solution in general.
Diffstat (limited to 'storage/devicetree.py')
-rw-r--r-- | storage/devicetree.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/storage/devicetree.py b/storage/devicetree.py index 5c4df8ea6..afc1dfb36 100644 --- a/storage/devicetree.py +++ b/storage/devicetree.py @@ -1577,10 +1577,6 @@ class DeviceTree(object): name = udev_device_get_name(info) sysfs_path = udev_device_get_sysfs_path(info) - if udev_device_is_biosraid(info): - # this will prevent display of the member devices in the UI - device.format.biosraid = True - md_array = self.getDeviceByUuid(device.format.mdUuid) if device.format.mdUuid and md_array: md_array._addDevice(device) @@ -1759,6 +1755,7 @@ class DeviceTree(object): kwargs["mdUuid"] = udev_device_get_md_uuid(info) except KeyError: log.debug("mdraid member %s has no md uuid" % name) + kwargs["biosraid"] = udev_device_is_biosraid(info) elif format_type == "LVM2_member": # lvm try: |