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

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