From ef46dbc30a1750ae1201c09783cfacae26cde2d2 Mon Sep 17 00:00:00 2001 From: songyanchao Date: Sun, 4 Dec 2022 20:31:38 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(TSG-12904):=20=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=BC=96=E8=AF=91mft=E5=B7=A5=E5=85=B7=E6=89=80?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E7=9A=84kernel=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 创建编译mft工具所需要的kernel directory --- ansible/roles/OFED/tasks/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ansible/roles/OFED/tasks/main.yml b/ansible/roles/OFED/tasks/main.yml index e40249ce..af69e669 100644 --- a/ansible/roles/OFED/tasks/main.yml +++ b/ansible/roles/OFED/tasks/main.yml @@ -24,11 +24,17 @@ when: runtime_env == 'TSG-X-P0804' or runtime_env == 'TSG-X-P0906' - name: "change kernel version for uname" - shell: sed -i -e 's/KERNEL_VERSION/3.10.0-1160.59.1.el7.x86_64/' /usr/bin/uname + shell: sed -i -e 's/KERNEL_VERSION/3.10.0-1160.59.1.el7/' /usr/bin/uname + when: runtime_env == 'TSG-X-P1403' + +- name: "create kernel directory" + file: + path: "/lib/modules/3.10.0-1160.59.1.el7.x86_64" + state: directory when: runtime_env == 'TSG-X-P1403' - name: "ln kernel for el7" - shell: mkdir -p /lib/modules/3.10.0-1160.59.1.el7.x86_64/ && ln -vfs --relative /usr/src/kernels/3.10.0-1160.59.1.el7.x86_64/ /lib/modules/3.10.0-1160.59.1.el7.x86_64/build + shell: ln -vfs --relative /usr/src/kernels/3.10.0-1160.59.1.el7.x86_64/ /lib/modules/3.10.0-1160.59.1.el7.x86_64/build when: runtime_env == 'TSG-X-P1403' ###### TSG-X-P0804 TSG-X-P0906 ofed install start ######