Skip to content

Commit 22997b1

Browse files
fix: Driver re-build after OCP kernel change (Mellanox#1782)
We need to store driver build in kernel-speciffic directory to not re-load it after kernel was changed. Related to: Mellanox/doca-driver-build#166
2 parents 4846405 + 8ce8c67 commit 22997b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

manifests/state-ofed-driver/0050_ofed-driver-ds.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ spec:
177177
command: [bash, -xc]
178178
args:
179179
- |
180-
until [ -f /mnt/shared-doca-driver-toolkit/dtk_start_compile ]; do
180+
until [ -f /mnt/shared-doca-driver-toolkit/{{ .RuntimeSpec.Kernel }}/dtk_start_compile ]; do
181181
echo Waiting for mofed-container container to prepare the shared directory
182182
sleep 3
183183
done
184-
exec /mnt/shared-doca-driver-toolkit/dtk_nic_driver_build.sh
184+
exec /mnt/shared-doca-driver-toolkit/{{ .RuntimeSpec.Kernel }}/dtk_nic_driver_build.sh
185185
env:
186186
- name: DTK_OCP_NIC_SHARED_DIR
187187
value: "/mnt/shared-doca-driver-toolkit"

0 commit comments

Comments
 (0)