summaryrefslogtreecommitdiffstats
path: root/site/intel-pod10/baremetal
diff options
context:
space:
mode:
authorSridhar K. N. Rao <sridhar.rao@spirent.com>2019-11-04 21:14:33 +0530
committerSridhar K. N. Rao <sridhar.rao@spirent.com>2019-11-04 21:17:21 +0530
commit0bc475ad56588ca34407d495032ae27e4208babe (patch)
tree09765b709ad2ca7c19afc5882ff318f1758f8d47 /site/intel-pod10/baremetal
parent799182f0c40730e41253dc5c861857d219291c3b (diff)
Site-Intel-Pod10: IXGBE Driver Install.
This patch adds support to install ixgbe driver as part of bootactions 1. Script similar to i40e is added in type/cntt/scripts 2. Versions.yaml is updated with url to download ixgbe driver. 3. New bootaction as part of pod-10 is created. Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com> Change-Id: Id6d759390b832f23a0dbdaf172c4a25f650ce7e6
Diffstat (limited to 'site/intel-pod10/baremetal')
-rw-r--r--site/intel-pod10/baremetal/bootactions/ixgbe-dkms-install.yaml56
1 files changed, 56 insertions, 0 deletions
diff --git a/site/intel-pod10/baremetal/bootactions/ixgbe-dkms-install.yaml b/site/intel-pod10/baremetal/bootactions/ixgbe-dkms-install.yaml
new file mode 100644
index 0000000..49b5329
--- /dev/null
+++ b/site/intel-pod10/baremetal/bootactions/ixgbe-dkms-install.yaml
@@ -0,0 +1,56 @@
+---
+# This file defines a boot action to install specified version of the ixgbe
+# driver and blacklist the ixgbevf driver.
+schema: 'drydock/BootAction/v1'
+metadata:
+ schema: 'metadata/Document/v1'
+ name: ixgbe-dkms-install
+ storagePolicy: 'cleartext'
+ layeringDefinition:
+ abstract: false
+ layer: site
+ labels:
+ application: 'drydock'
+ substitutions:
+ - src:
+ schema: pegleg/Script/v1
+ name: ixgbe-dkms-install
+ path: .
+ dest:
+ path: .assets[1].data
+data:
+ signaling: false
+ assets:
+ - path: /etc/systemd/system/ixgbe-dkms-install.service
+ type: unit
+ permissions: '444'
+ data: |
+ [Unit]
+ Description=Service for Installing ixgbe driver
+ DefaultDependencies=no
+ Before=promjoin.service
+ After=network-online.target local-fs.target cloud-init.target
+
+ [Service]
+ Type=oneshot
+ ExecStart=/opt/ixgbe-dkms-install.sh
+ RemainAfterExit=true
+
+ [Install]
+ WantedBy=airship.target
+
+ data_pipeline:
+ - utf8_decode
+ - path: /opt/ixgbe-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 ixgbevf
+...