I am creating an automated kickstart process. The html and perl code to build the ks.cfg are working perfectly. I can build my kickstart iso with no problems using
mkisofs -r -T -J -V "Redhat KSBoot" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -v -o /var/www/html/linuxboot.iso .
I am trying to have apache return the iso via http as follows:
print "Content-type: application/octet-stream\n";
print "Content-Disposition: attachment\; filename=\"kickstart.iso\"\n"
print "Content-Transfer-Encoding: binary\n";
exec("mkisofs -r -T -J -V \"Redhat KSBoot\" -b pub/isolinux/isolinux.b
+in -c pub/isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-in
+fo-table -v .");
I do get a file sent to the browser, but it's only 35k. It consists of roughly 100 blank lines, and then the isogen headers. It should be roughly 4GB, and that header should be the first thing in the file. I'm pulling what little hair I have left out trying to figure this one out.
Any help appreciated.