From 143c5ffaec28b4d073d9ba4acc114c4c06f32791 Mon Sep 17 00:00:00 2001 From: Vojtech Trefny Date: Fri, 13 Dec 2024 13:46:06 +0100 Subject: [PATCH] Use just name as device ID for multipath devices (#2327619) 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. --- blivet/devices/disk.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/blivet/devices/disk.py b/blivet/devices/disk.py index ade4e721c..d9907fda3 100644 --- a/blivet/devices/disk.py +++ b/blivet/devices/disk.py @@ -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: