From 2845b2722692def512c90340002ed386a090f5b7 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Fri, 10 Jan 2025 12:35:35 +0100 Subject: [PATCH] Use name as device ID for BIOS RAID arrays (#2335009) 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. --- blivet/devices/md.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blivet/devices/md.py b/blivet/devices/md.py index 61865fc3a..e6b821299 100644 --- a/blivet/devices/md.py +++ b/blivet/devices/md.py @@ -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