Skip to content

Commit

Permalink
add udev-builtin-path_id property to zfcp-attached SCSI disks
Browse files Browse the repository at this point in the history
so anaconda can use it to display path_id information for multipath
members

Signed-off-by: Steffen Maier <[email protected]>
  • Loading branch information
steffen-maier committed Oct 13, 2023
1 parent 57f1382 commit c0efe57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blivet/devices/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions blivet/populator/helpers/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c0efe57

Please sign in to comment.