Extract grubx64.efi from boot partition image

This commit is contained in:
Khue Doan 2021-06-13 03:17:15 +07:00
parent d616abe807
commit 6fae2f5413

View File

@ -11,6 +11,7 @@
- "{{ role_path }}/build"
- "{{ role_path }}/files/images"
- "{{ role_path }}/build/mnt"
- "{{ role_path }}/build/mnt/EFI/BOOT"
- name: Download ISO
get_url:
@ -25,6 +26,13 @@
cmd: "xorriso -osirrox on -indev {{ iso.dest }} -extract / {{ role_path }}/build/mnt"
creates: "{{ role_path }}/build/mnt/.treeinfo"
- name: Extract bootloader
iso_extract:
image: "{{ role_path }}/build/mnt/images/efiboot.img"
dest: "{{ role_path }}/build/mnt/EFI/BOOT"
files:
- EFI/fedora/grubx64.efi
- name: Copy configs
copy:
src: "{{ role_path }}/templates/"