Check kernel / initrd path on medias
Together with the output of isoinfo -d -i /path/to/iso
, we could also store the output of isoinfo -J -i /path/to/iso -f
, which would list us all the files in the media.
Once we have the media content, validating the kernel and initrd path should be trivial.
Mind the -J
, which means this only would work for medias created using the Joliet extension / filesystem (https://en.wikipedia.org/wiki/Joliet_(file_system)).