Blame SOURCES/0047-devtree-Add-UUID-property.patch

121cca
From 9c5c2f0706db330114ff4624e0931ac40c1d6fe2 Mon Sep 17 00:00:00 2001
121cca
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
121cca
Date: Wed, 20 Jan 2021 11:28:47 +0530
121cca
Subject: [PATCH 47/65] devtree: Add UUID property
121cca
121cca
Add UUID property to PowerVM LPAR.
121cca
121cca
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
121cca
---
121cca
 src/core/device-tree.cc | 2 ++
121cca
 1 file changed, 2 insertions(+)
121cca
121cca
diff --git a/src/core/device-tree.cc b/src/core/device-tree.cc
121cca
index d3188c6..7df6a4e 100644
121cca
--- a/src/core/device-tree.cc
121cca
+++ b/src/core/device-tree.cc
121cca
@@ -1503,6 +1503,8 @@ bool scan_device_tree(hwNode & n)
121cca
       scan_devtree_bootrom(*core);
121cca
       if (exists(DEVICETREE "/ibm,lpar-capable")) {
121cca
         n.setDescription("pSeries LPAR");
121cca
+        if (exists( DEVICETREE "/ibm,partition-uuid"))
121cca
+          n.setConfig("uuid", get_string(DEVICETREE "/ibm,partition-uuid"));
121cca
         scan_devtree_cpu_power(*core);
121cca
       }
121cca
       else {
121cca
-- 
121cca
2.33.1
121cca