summaryrefslogtreecommitdiffstats
path: root/slx-builder/tasks/dnbd3-fixes.yml
blob: 35cd6a02df292ad06b8b17278a06fda3404ccddc (plain) (blame)
1
2
3
4
5
6
7
8
9
---
- name: Hack fix dnbd3 blk.h for CentOS kernels with backports
  replace:
    dest: "{{ builder_path | dirname }}/systemd-init.git/builder/modules.d/dnbd3-rootfs/scripts/build.sh"
    regexp: 'make -j dnbd3 dnbd3-client'
    replace: 'sed -i "s/KERNEL_VERSION.*/KERNEL_VERSION\(3, 10, 0\)/g" blk.h && make -j dnbd3 dnbd3-client'
    backup: yes
  when:
    - ansible_distribution == "CentOS"