From 4785219049066c7734d2a48815f857fd3f974938 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Fri, 1 Nov 2024 08:45:30 +0100 Subject: [PATCH] pyanaconda: storage: workaround for Virtio Block Device being displayed as 0x1af4 --- pyanaconda/modules/storage/devicetree/viewer.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyanaconda/modules/storage/devicetree/viewer.py b/pyanaconda/modules/storage/devicetree/viewer.py index 451ffad1fc8..2531fece2d7 100644 --- a/pyanaconda/modules/storage/devicetree/viewer.py +++ b/pyanaconda/modules/storage/devicetree/viewer.py @@ -133,6 +133,11 @@ def _set_device_data(self, device, data): # FIXME: We should generate the description from the device data. data.description = getattr(device, "description", "") + # Workaround for Virtio Block Device being displayed as 0x1af4 + # https://github.com/storaged-project/blivet/pull/174 + if data.description == "0x1af4": + data.description = _("Virtio Block Device") + data.attrs["serial"] = self._get_attribute(device, "serial") data.attrs["vendor"] = self._get_attribute(device, "vendor") data.attrs["model"] = self._get_attribute(device, "model")