Skip to content

Commit

Permalink
Use name as device ID for BIOS RAID arrays (#2335009)
Browse files Browse the repository at this point in the history
These are treated as disks so we should use just the name, the
same way we do for disks. The names of the BIOS arrays are unique
enought to hopefuly not cause any issues.
  • Loading branch information
vojtechtrefny committed Jan 10, 2025
1 parent 6b4be0d commit 0cb258d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blivet/devices/md.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,10 @@ def size(self):
# when teared down.
return self._size

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

@property
def description(self):
levelstr = self.level.nick if self.level.nick else self.level.name
Expand Down

0 comments on commit 0cb258d

Please sign in to comment.