Hello to everyone.
I'm trying to understand how to extract all the files from a (bootable) Debian ISO and then re-generate a bootable ISO image. Below you can see the commands that I've issued. For some unknown reason,the generated ISO image does not boot. Can someone help me to understand why ? thanks.
apt update && apt -y install xorriso genisoimage
wget https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-11.5.0-amd64-netinst.iso
xorriso -osirrox on -indev debian-11.5.0-amd64-netinst.iso -extract / isofiles/
genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o debian-11-unattended.iso isofiles
as you can see I haven't done any modification to the files inside the ISO image,so the error should be most likely on the latest command.