aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authorRafael Fonseca <rdossant@redhat.com>2016-10-25 14:47:04 +0200
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-10-31 11:41:51 +1100
commita1c7f3e3c6a544874d2bf1fc28373c26a3c0bfc5 (patch)
treec6fbb835a61291892e4c8dd562ba7b5350e5dcec /external
parentd7e4438644e8cb6941906c110d74f83d0b161386 (diff)
downloadskiboot-a1c7f3e3c6a544874d2bf1fc28373c26a3c0bfc5.zip
skiboot-a1c7f3e3c6a544874d2bf1fc28373c26a3c0bfc5.tar.gz
skiboot-a1c7f3e3c6a544874d2bf1fc28373c26a3c0bfc5.tar.bz2
opal-prd: only run on supported systems
opal-prd is supposed to run only on ppc64(le) 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@redhat.com> [stewart@linux.vnet.ibm.com: drop ppc64le arch req, DT is enough&we run on BE] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'external')
-rw-r--r--external/opal-prd/opal-prd.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/external/opal-prd/opal-prd.service b/external/opal-prd/opal-prd.service
index 2f4c1ba..9956912 100644
--- a/external/opal-prd/opal-prd.service
+++ b/external/opal-prd/opal-prd.service
@@ -1,5 +1,7 @@
[Unit]
Description=OPAL PRD daemon
+ConditionVirtualization=false
+ConditionPathExists=/sys/firmware/devicetree/base/ibm,opal/diagnostics
[Service]
ExecStart=/usr/sbin/opal-prd --pnor /dev/mtd0