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

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