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:
#!/usr/bin/perl
print "Content-type: application/octet-stream\n";
print "Content-Disposition: attachment\; filename=\"kickstart.iso\"\n"
+;
print "Content-Transfer-Encoding: binary\n";
binmode(STDOUT);
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.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.