Skip to content

Commit

Permalink
Fix kernel upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
assumptionsandg committed Sep 17, 2024
1 parent b85e796 commit 50c99c2
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions etc/kayobe/ansible/build-ofed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,21 @@
- createrepo
- cmake-filesystem
- libnl3-devel
- python3-devel
state: latest
update_cache: true

- name: Set GRUB default index to saved
ansible.builtin.lineinfile:
path: /etc/default/grub
line: "GRUB_DEFAULT=saved"

- name: Set update default index in kernel sysconfig
ansible.builtin.lineinfile:
path: /etc/sysconfig/kernel
line: "UPDATEDEFAULT=yes"
create: true

- name: Update the default kernel entry
ansible.builtin.shell:
cmd: |
Expand All @@ -51,8 +63,7 @@
- name: Disable noexec in temporary file system
ansible.builtin.replace:
path: /etc/fstab
regexp: '^(exclude=.*)noexec,\*\s*'
replace: '\1'
regexp: 'noexec,'

- name: Reboot builder to apply kernel update
ansible.builtin.reboot:
Expand Down

0 comments on commit 50c99c2

Please sign in to comment.