diff --git a/lshw-devtree-Add-UUID-property.patch b/lshw-devtree-Add-UUID-property.patch new file mode 100644 index 0000000..063f4a9 --- /dev/null +++ b/lshw-devtree-Add-UUID-property.patch @@ -0,0 +1,32 @@ +From 9c5c2f0706db330114ff4624e0931ac40c1d6fe2 Mon Sep 17 00:00:00 2001 +From: Vasant Hegde +Date: Wed, 20 Jan 2021 11:28:47 +0530 +Subject: [PATCH] devtree: Add UUID property + +References: bsc#1181411 ltc#191040 +Upstrem: accepted +Git-commit: 9c5c2f0706db330114ff4624e0931ac40c1d6fe2 + +Add UUID property to PowerVM LPAR. + +Signed-off-by: Vasant Hegde +--- + src/core/device-tree.cc | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/core/device-tree.cc b/src/core/device-tree.cc +index d3188c6a8a27..7df6a4ee074c 100644 +--- a/src/core/device-tree.cc ++++ b/src/core/device-tree.cc +@@ -1503,6 +1503,8 @@ bool scan_device_tree(hwNode & n) + scan_devtree_bootrom(*core); + if (exists(DEVICETREE "/ibm,lpar-capable")) { + n.setDescription("pSeries LPAR"); ++ if (exists( DEVICETREE "/ibm,partition-uuid")) ++ n.setConfig("uuid", get_string(DEVICETREE "/ibm,partition-uuid")); + scan_devtree_cpu_power(*core); + } + else { +-- +2.26.2 + diff --git a/lshw.changes b/lshw.changes index e6b8b93..1c63016 100644 --- a/lshw.changes +++ b/lshw.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 26 15:38:36 UTC 2021 - Michal Suchanek + +- Display UUID on Power VM LPAR (bsc#1181411 ltc#191040) + * lshw-devtree-Add-UUID-property.patch + ------------------------------------------------------------------- Mon Aug 31 08:34:41 UTC 2020 - Martin Pluskal diff --git a/lshw.spec b/lshw.spec index abd9848..2b43cd1 100644 --- a/lshw.spec +++ b/lshw.spec @@ -1,7 +1,7 @@ # # spec file for package lshw # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2013 Pascal Bleser # # All modifications and additions to the file contributed by third parties @@ -33,6 +33,8 @@ Patch1: lshw-fix-segfault-in-apfs-volume-code.patch Patch2: lshw-fix-mmc.patch # PATCH-FIX-UPSTREAM - https://github.com/lyonel/lshw/commit/3775782808e8b9b8aa72ed2ce23e145433e193cf - boo#1172156 Patch3: lshw-fix-ppc.patch +# PATCH-FIX-UPSTREAM - https://ezix.org/src/pkg/lshw/commit/9c5c2f0706db330114ff4624e0931ac40c1d6fe2 - bsc#1181411 +Patch4: lshw-devtree-Add-UUID-property.patch BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme BuildRequires: libpng-devel