Skip to content

Commit

Permalink
Use just name as device ID for multipath devices (#2327619)
Browse files Browse the repository at this point in the history
Anaconda relies on disks using name as device ID because it needs
to be able to process the disks from kickstart without using
blivet. For this use case multipath devices are basically disks so
we should just use name here as well.
  • Loading branch information
vojtechtrefny committed Dec 13, 2024
1 parent 4f34ef5 commit 143c5ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blivet/devices/disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ def __init__(self, name, fmt=None, size=None, wwn=None,
exists=True)
self.wwn = wwn or None

@property
def device_id(self):
return self.name

@property
def model(self):
if not self.parents:
Expand Down

0 comments on commit 143c5ff

Please sign in to comment.