Browse Source

Merge "Handle generating grub config for EFI partitions"

tags/1.4.0
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
6d8139f76b
1 changed files with 12 additions and 2 deletions
  1. +12
    -2
      tripleo_ansible/roles/tripleo_kernel/tasks/kernelargs.yml

+ 12
- 2
tripleo_ansible/roles/tripleo_kernel/tasks/kernelargs.yml View File

@@ -31,8 +31,18 @@
dest: /etc/default/grub
line: 'GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX:+$GRUB_CMDLINE_LINUX }${TRIPLEO_HEAT_TEMPLATE_KERNEL_ARGS}"'
insertafter: '^TRIPLEO_HEAT_TEMPLATE_KERNEL_ARGS.*'
- name: Generate grub config file
command: grub2-mkconfig -o /boot/grub2/grub.cfg
- name: Check grub config paths
stat:
path: "{{ item }}"
register: grub_stat
loop:
- /boot/grub2/grub.cfg
- /boot/efi/EFI/redhat/grub.cfg
- /boot/efi/EFI/fedora/grub.cfg
- name: Generate grub config
command: "grub2-mkconfig -o {{ item.stat.path }}"
when: item.stat.exists|bool
loop: "{{ grub_stat.results }}"
- name: Set reboot required fact
set_fact:
reboot_required: true


Loading…
Cancel
Save