From 0cb258db1a7c78f1f6c001ea86708e309ee7cec8 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