
Update image-builder for UEFI dual-boot, as was being done in iso-builder previously. Change-Id: Iadd2aed03db490c5ccd5574b0086580759f6f7f1
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
- name: "ISO | Ensure any old iso image at target location is removed"
|
|
file:
|
|
state: absent
|
|
path: "{{ img_output_dir }}/{{ img_name }}"
|
|
|
|
- name: "ISO | Ensuring {{ img_output_dir }} directory exists"
|
|
file:
|
|
path: "{{ img_output_dir }}"
|
|
state: directory
|
|
mode: '0755'
|
|
|
|
- name: "ISO | Writing ISO with xorriso"
|
|
shell:
|
|
cmd: |
|
|
xorriso \
|
|
-as mkisofs \
|
|
-iso-level 3 \
|
|
-full-iso9660-filenames \
|
|
-volid "config-2" \
|
|
-eltorito-boot boot/grub/bios.img \
|
|
-no-emul-boot \
|
|
-boot-load-size 4 \
|
|
-boot-info-table \
|
|
--eltorito-catalog boot/grub/boot.cat \
|
|
--grub2-boot-info \
|
|
--grub2-mbr /usr/lib/grub/i386-pc/boot_hybrid.img \
|
|
-eltorito-alt-boot \
|
|
-e EFI/efiboot.img \
|
|
-no-emul-boot \
|
|
-append_partition 2 0xef {{ root_image }}/boot/grub/efiboot.img \
|
|
-output {{ img_output_dir }}/{{ img_name }} \
|
|
-graft-points \
|
|
{{ root_image }} \
|
|
/boot/grub/bios.img={{ root_image }}/boot/grub/bios.img \
|
|
/EFI/efiboot.img={{ root_image }}/boot/grub/efiboot.img
|