diff --git a/blivet/devices/disk.py b/blivet/devices/disk.py index 5053f7bb8..1db4b9405 100644 --- a/blivet/devices/disk.py +++ b/blivet/devices/disk.py @@ -469,10 +469,12 @@ def __init__(self, device, **kwargs): :keyword hba_id: ??? :keyword wwpn: ??? :keyword fcp_lun: ??? + :keyword id_path: string from udev-builtin-path_id """ self.hba_id = kwargs.pop("hba_id") self.wwpn = kwargs.pop("wwpn") self.fcp_lun = kwargs.pop("fcp_lun") + self.id_path = kwargs.pop("id_path") DiskDevice.__init__(self, device, **kwargs) self._clear_local_tags() self.tags.add(Tags.remote) diff --git a/blivet/populator/helpers/disk.py b/blivet/populator/helpers/disk.py index ce2cb73be..2d66f7975 100644 --- a/blivet/populator/helpers/disk.py +++ b/blivet/populator/helpers/disk.py @@ -223,6 +223,7 @@ def match(cls, data): def _get_kwargs(self): kwargs = super(ZFCPDevicePopulator, self)._get_kwargs() + kwargs["id_path"] = udev.device_get_path(self.data) for attr in ['hba_id', 'wwpn', 'fcp_lun']: kwargs[attr] = udev.device_get_zfcp_attribute(self.data, attr=attr)