Merge "Handle generating grub config for EFI partitions" into stable/stein
This commit is contained in:
commit
ba8d35f743
|
@ -20,8 +20,19 @@
|
||||||
dest: /etc/default/grub
|
dest: /etc/default/grub
|
||||||
line: 'GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX:+$GRUB_CMDLINE_LINUX }${TRIPLEO_HEAT_TEMPLATE_KERNEL_ARGS}"'
|
line: 'GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX:+$GRUB_CMDLINE_LINUX }${TRIPLEO_HEAT_TEMPLATE_KERNEL_ARGS}"'
|
||||||
insertafter: '^TRIPLEO_HEAT_TEMPLATE_KERNEL_ARGS.*'
|
insertafter: '^TRIPLEO_HEAT_TEMPLATE_KERNEL_ARGS.*'
|
||||||
- name: Generate grub config file
|
- name: Check grub config paths
|
||||||
command: grub2-mkconfig -o /boot/grub2/grub.cfg
|
stat:
|
||||||
|
path: "{{ item }}"
|
||||||
|
register: grub_stat
|
||||||
|
loop:
|
||||||
|
- /boot/grub2/grub.cfg
|
||||||
|
- /boot/efi/EFI/redhat/grub.cfg
|
||||||
|
- /boot/efi/EFI/centos/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
|
- name: Set reboot required fact
|
||||||
set_fact:
|
set_fact:
|
||||||
reboot_required: true
|
reboot_required: true
|
||||||
|
|
Loading…
Reference in New Issue