Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding variable control of kernel update #207

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cdunbar13
Copy link
Collaborator

It might not always be the best to update the kernel - especially with images that are built with specific kernel tied drivers in mind. This provides a mechanism to circumvent at least updating the kernel and release version.

Copy link
Member

@tpdownes tpdownes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the same pattern as Debian. e.g. in playbook.yml there should be a block that (non-optionally) freezes the kernel during build

  - name: Freeze kernel before running playbook
    when: ansible_os_family == "Debian"
    ansible.builtin.dpkg_selections:
      name: "{{ kernel_package }}"
      selection: hold

and then the final step should unfreeze it depending upon the setting of allow_kernel_upgrades.

  post_tasks:
  - name: Re-enable kernel upgrades by apt-get upgrade
    when:
    - ansible_os_family == "Debian"
    - allow_kernel_upgrades
    ansible.builtin.dpkg_selections:
      name: "{{ kernel_package }}"
      selection: install

The dnf exclude or dnf-versionlock plugins seem appropriate mechanisms.

@tpdownes tpdownes assigned cdunbar13 and unassigned tpdownes Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants