Skip to content

Commit 50c99c2

Browse files
Fix kernel upgrade
1 parent b85e796 commit 50c99c2

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

etc/kayobe/ansible/build-ofed.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,21 @@
3939
- createrepo
4040
- cmake-filesystem
4141
- libnl3-devel
42+
- python3-devel
4243
state: latest
4344
update_cache: true
4445

46+
- name: Set GRUB default index to saved
47+
ansible.builtin.lineinfile:
48+
path: /etc/default/grub
49+
line: "GRUB_DEFAULT=saved"
50+
51+
- name: Set update default index in kernel sysconfig
52+
ansible.builtin.lineinfile:
53+
path: /etc/sysconfig/kernel
54+
line: "UPDATEDEFAULT=yes"
55+
create: true
56+
4557
- name: Update the default kernel entry
4658
ansible.builtin.shell:
4759
cmd: |
@@ -51,8 +63,7 @@
5163
- name: Disable noexec in temporary file system
5264
ansible.builtin.replace:
5365
path: /etc/fstab
54-
regexp: '^(exclude=.*)noexec,\*\s*'
55-
replace: '\1'
66+
regexp: 'noexec,'
5667

5768
- name: Reboot builder to apply kernel update
5869
ansible.builtin.reboot:

0 commit comments

Comments
 (0)