Skip to content

Commit

Permalink
Merge pull request #9 from jabl/mlnx_chroot
Browse files Browse the repository at this point in the history
Make MLNX_OFED init script work for chroot images
  • Loading branch information
VilleS1 authored Dec 14, 2018
2 parents 78cbbc3 + 8f6c353 commit 6262f94
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/redhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,16 @@
when:
- ansible_connection == 'chroot'
- rdma_manage_opensm

# The MLNX_OFED init script won't work with bootstrap images since
# kernel modules aren't symlinks and thus the script thinks the
# modules don't belong to MLNX_OFED. However, the script has a
# variable FORCE that can be set to force it to ignore this check.
- name: Fix /etc/init.d/openibd on chroots
lineinfile:
path: /etc/init.d/openibd
regexp: '^FORCE=0$'
line: 'FORCE=1'
when:
- ansible_connection == 'chroot'
- rdma_type == 'mlnx_ofed'

0 comments on commit 6262f94

Please sign in to comment.