Adding file to ISO of Bootable Live Linux OS (Contains GRUB)
I would like to add a file to an ISO and still be able to boot the Live OS - I think it's a busybox with few custom kernel modules and scripts. I have tried using windows applications what would allow me to add the file but the ISO still gets modified in some way where it just freezes when GRUB is about to load.
I attempted to use ISO Master on linux but with the same results.
The structure of the ISO is as follows:
/BOOT/bzImage [2MB in size]
/BOOT/config-linux-kernel [44k in size]
/BOOT/initrd.cpio.gz [5MB in size]
/BOOT/modules [contains few ko modules]
The only addition above is the "NEW_DIR" and a file, but adding the file causes something to change and I don't understand what that is....
My latest attempt was to extract the ISO and use isolinux to rebuild the ISO. I attempted to also add isolinux directory into above structure. Inside I copied isolinux.bin, boot.cat which is the "boot.catalog" file in the original ISO and the isolinux.cfg which is "menu.lst" from the original ISO . The ISO gets built, but when attempting to boot, now I get error messages basically saying every line in isolinux.cfg is "unknown keyword in configuration file" and kernel image cannot be found.
I don't know if the isolinux is even the proper way since the CD boots into GRUB.
Maybe GRUB needs to be reinstalled on the ISO somehow since the size has changed?
Would anyone have any suggestions as how to make this work?
Last edited by niteshadw; 01-18-2013 at 11:34 PM.