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
1diff --git a/jobs/resource.pxu b/jobs/resource.pxu
2index ffac737..b4cbe69 100644
3--- a/jobs/resource.pxu
4+++ b/jobs/resource.pxu
5@@ -64,6 +64,11 @@ os-id: ubuntu
6 os-version-id: 18.04
7 Depends: iw (>= 5.3)
8
9+# This is for nvdimm detection
10+unit: packaging meta-data
11+os-id: ubuntu
12+Depends: ipmctl
13+
14 id: cpuinfo
15 estimated_duration: 0.37
16 plugin: resource
17@@ -475,3 +480,18 @@ estimated_duration: 1.0
18 user: root
19 command:
20 bootloader_resource.py
21+
22+id: nvdimm
23+estimated_duration: 0.25
24+plugin: resource
25+user: root
26+requires:
27+ package.name == 'ipmctl' or executable.name == 'ipmctl'
28+_summary: Resource for NVDIMM detection
29+command:
30+ if ipmctl show -dimm |grep -iq "No DIMMs in the system";
31+ then
32+ echo "detected: false"
33+ else
34+ echo "detected: true"
35+ fi

Subscribers

People subscribed via source and target branches