summaryrefslogtreecommitdiffstats
path: root/type/cntt/baremetal/bootactions
diff options
context:
space:
mode:
authorRoy Tang <roy.s.tang@att.com>2019-09-24 13:46:05 +0000
committerRoy Tang <roy.s.tang@att.com>2019-09-24 19:29:02 +0000
commitcbbd7b9f691272918baa37395da07796f812402b (patch)
tree7f8f4071d320c8d98b9950975c6bc1598a97ac61 /type/cntt/baremetal/bootactions
parent33f9e3c3cc0aa0a1254151572d9b080ef952e293 (diff)
Add bootaction to install i40e driver for cntt
Change-Id: I04245d64d28539e917169058506362e969be3cba Signed-off-by: Roy Tang <roy.s.tang@att.com>
Diffstat (limited to 'type/cntt/baremetal/bootactions')
-rw-r--r--type/cntt/baremetal/bootactions/i40e-dkms-install.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/type/cntt/baremetal/bootactions/i40e-dkms-install.yaml b/type/cntt/baremetal/bootactions/i40e-dkms-install.yaml
new file mode 100644
index 0000000..60528cf
--- /dev/null
+++ b/type/cntt/baremetal/bootactions/i40e-dkms-install.yaml
@@ -0,0 +1,56 @@
+---
+# This file defines a boot action to install specified version of the i40e
+# driver and blacklist the i40evf driver.
+schema: 'drydock/BootAction/v1'
+metadata:
+ schema: 'metadata/Document/v1'
+ name: i40e-dkms-install
+ storagePolicy: 'cleartext'
+ layeringDefinition:
+ abstract: false
+ layer: type
+ labels:
+ application: 'drydock'
+ substitutions:
+ - src:
+ schema: pegleg/Script/v1
+ name: i40e-dkms-install
+ path: .
+ dest:
+ path: .assets[1].data
+data:
+ signaling: false
+ assets:
+ - path: /etc/systemd/system/i40e-dkms-install.service
+ type: unit
+ permissions: '444'
+ data: |
+ [Unit]
+ Description=Service for Installing i40e driver
+ DefaultDependencies=no
+ Before=promjoin.service
+ After=network-online.target local-fs.target cloud-init.target
+
+ [Service]
+ Type=oneshot
+ ExecStart=/opt/i40e-dkms-install.sh
+ RemainAfterExit=true
+
+ [Install]
+ WantedBy=airship.target
+
+ data_pipeline:
+ - utf8_decode
+ - path: /opt/i40e-dkms-install.sh
+ type: file
+ permissions: '700'
+ data_pipeline:
+ - utf8_decode
+ - path: /etc/modprobe.d/sriov_blacklist.conf
+ type: file
+ permissions: '644'
+ data_pipeline:
+ - utf8_decode
+ data: |
+ blacklist i40evf
+...