I am trying to modify the iso file using below code, but getting the error “msg”: “Failed to delete iso file /boot.cfg with error: Assigned an extent beyond the ISO (214605 > 214603)”}
unable to find any article. Can anyone help me to fix the issue?
I am on Centos 9 Stream and Python 3.9.17
pycdlib==1.14.0
- name: Modify source ISO from {{ file_path }} and copy to destination
community.general.iso_customize:
src_iso: "{{ isosrc}}/{{ src_iso_file }}"
dest_iso: "{{ iso_path }}/{{ item.servername }}.iso"
delete_files:
- "boot.cfg"
- "EFI/BOOT/BOOT.CFG"
add_files:
- src_file: "{{ file_path }}/{{ item.servername }}/BOOT.CFG"
dest_file: "BOOT.CFG"
- src_file: "{{ file_path }}/{{ item.servername }}/BOOT.CFG"
dest_file: "EFI/BOOT/BOOT.CFG"
loop: "{{ hostName }}"