[Skiboot] [PATCH 2/2] opal-prd: only run on supported systems

Rafael Fonseca rdossant at redhat.com
Tue Oct 25 23:47:04 AEDT 2016


opal-prd is supposed to run only on ppc64le hosts with support for diagnostics.
The presence of the following device-tree node will indicate a system that
supports PRD:

/sys/firmware/devicetree/base/ibm,opal/diagnostics

Signed-off-by: Rafael Fonseca <rdossant at redhat.com>
---
 external/opal-prd/opal-prd.service | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/external/opal-prd/opal-prd.service b/external/opal-prd/opal-prd.service
index 2f4c1ba..6055333 100644
--- a/external/opal-prd/opal-prd.service
+++ b/external/opal-prd/opal-prd.service
@@ -1,5 +1,8 @@
 [Unit]
 Description=OPAL PRD daemon
+ConditionArchitecture=ppc64-le
+ConditionVirtualization=false
+ConditionPathExists=/sys/firmware/devicetree/base/ibm,opal/diagnostics
 
 [Service]
 ExecStart=/usr/sbin/opal-prd --pnor /dev/mtd0
-- 
2.7.4



More information about the Skiboot mailing list