I have a bash script that is supposed to download a Windows 10 iso file from Microsoft and then change the names of two files in that iso in order to remove the "Press any key to boot from this CD/DVD..." prompt.
Essentially I just want to swap the file names of these two files:
I know I could mount the image, copy the the contents somewhere, modify it to my liking and then use
genisoimage to create a new iso, somewhat like this:
sudo mount -o loop -t iso9660 /path/to/windows.iso /mnt sudo cp /mnt/ /mnt_copy/ cd /mnt_copy/efi/microsoft/boot sudo mv cdboot.efi tmp.efi sudo mv cdboot_noprompt.efi cdboot.efi sudo mv tmp.efi cdboot_noprompt.efi sudo genisoimage -J -joliet-long -r -allow-lowercase -allow-multidot -o "/path/to/new/windows.iso" "/mnt_copy/" # And then magically make the iso bootable again. No idea how this would be done.
but I'd like to avoid all this unnecessary overhead.