@JezCaudle I finally got it!
xorriso_args=$(xorriso -indev /path/to/iso -report_el_torito as_mkisofs)
will output the arguments for -as mkisofs
mode. I then used overlayfs to combine the autoinstal.yaml
file with the loop-back mounted ISO. Then I combined those xorriso mkisofs arguments with the overlayfs working directory containing the combined files. I also had to use eval xorriso ... $xorriso_args ...
in order to trick bash into parsing the single-quoted arguments (which may contain spaces, such as with the volume ID) in the xorriso -report_el_torito as_mkisofs
output.