Merge ~bladernr/plainbox-provider-resource:1873479-add-nvdimm-resource into plainbox-provider-resource:master

Proposed by Jeff Lane 
Status: Merged
Approved by: Jeff Lane 
Approved revision: 2082842b57691d1d132ad6d13fa5e053a654432d
Merged at revision: 8fa94843fdd5dfdfeae84847e7298e322c302c25
Proposed branch: ~bladernr/plainbox-provider-resource:1873479-add-nvdimm-resource
Merge into: plainbox-provider-resource:master
Diff against target: 35 lines (+20/-0)
1 file modified
jobs/resource.pxu (+20/-0)
Reviewer Review Type Date Requested Status
Jeff Lane  Approve
Review via email: mp+382508@code.launchpad.net

Commit message

Add a resource job to detect NVDIMMs

Description of the change

Add a resource job to detect NVDIMMs

To post a comment you must log in.
Revision history for this message
Jeff Lane  (bladernr) wrote :

self approve

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/jobs/resource.pxu b/jobs/resource.pxu
index ffac737..b4cbe69 100644
--- a/jobs/resource.pxu
+++ b/jobs/resource.pxu
@@ -64,6 +64,11 @@ os-id: ubuntu
64os-version-id: 18.0464os-version-id: 18.04
65Depends: iw (>= 5.3)65Depends: iw (>= 5.3)
6666
67# This is for nvdimm detection
68unit: packaging meta-data
69os-id: ubuntu
70Depends: ipmctl
71
67id: cpuinfo72id: cpuinfo
68estimated_duration: 0.3773estimated_duration: 0.37
69plugin: resource74plugin: resource
@@ -475,3 +480,18 @@ estimated_duration: 1.0
475user: root480user: root
476command:481command:
477 bootloader_resource.py482 bootloader_resource.py
483
484id: nvdimm
485estimated_duration: 0.25
486plugin: resource
487user: root
488requires:
489 package.name == 'ipmctl' or executable.name == 'ipmctl'
490_summary: Resource for NVDIMM detection
491command:
492 if ipmctl show -dimm |grep -iq "No DIMMs in the system";
493 then
494 echo "detected: false"
495 else
496 echo "detected: true"
497 fi

Subscribers

People subscribed via source and target branches