[ffwd][train-only] Copy /boot/grub2/grubenv to /boot/efi/EFI/redhat/grubenv
WA: some versions of grub2 fail to look for grubenv in /boot/grub2/grubenv In this case we copy the file instead of creating simlink making sure if this is the case than grubenv is still available for previous bootrecord. Resolves: rhbz#1942446 Change-Id: Ib45d58d6cc5dada3eb609a94ac5ed80bdc19f988
This commit is contained in:
parent
bc6840c6ea
commit
53bf067fb5
@ -263,6 +263,19 @@ outputs:
|
|||||||
- efi_dev.rc == 0
|
- efi_dev.rc == 0
|
||||||
- efi_broken.rc == 0
|
- efi_broken.rc == 0
|
||||||
block:
|
block:
|
||||||
|
# WA: some versions of grub2 fail to look for grubenv in /boot/grub2/grubenv
|
||||||
|
# In this case we copy the file instead of creating simlink making sure if
|
||||||
|
# this is the case than grubenv is still available for previous bootrecord.
|
||||||
|
- name: Stat /boot/grub2/grubenv
|
||||||
|
stat:
|
||||||
|
path: /boot/grub2/grubenv
|
||||||
|
register: grubenv
|
||||||
|
- name: Copy /boot/grub2/grubenv to /boot/efi/EFI/redhat/grubenv
|
||||||
|
when: grubenv.stat.islnk is defined and grubenv.stat.islnk == False
|
||||||
|
copy:
|
||||||
|
src: /boot/grub2/grubenv
|
||||||
|
dest: /boot/efi/EFI/redhat/grubenv
|
||||||
|
remote_src: true
|
||||||
- name: Copy /boot/efi/EFI/redhat to /tmp
|
- name: Copy /boot/efi/EFI/redhat to /tmp
|
||||||
copy:
|
copy:
|
||||||
src: /boot/efi/EFI/redhat/
|
src: /boot/efi/EFI/redhat/
|
||||||
|
Loading…
Reference in New Issue
Block a user