Page 1 of 1

Simple customization without repacking ISO

Posted: 11 Mar 2010, 13:24
by dans
My customization usually consists of setting another default keymap, enabling docache, dhcp and adjusting the boot timeout. To do this I just locate the content of /isolinux/isolinx.cfg in the image file and overwrite it. If isolinux.cfg has a fixed size, and the first line is a comment with a magic string, simple boot option modification can be easily scripted.

Re: Simple customization without repacking ISO

Posted: 14 Mar 2010, 20:17
by admin
You can also have a very simple script, there will be no risk of corruption:
1) mount the official iso image
2) copy all files to a temp directory
3) modify isolinux.cfg with sed
4) recreate the iso using mkisofs
5) unmount the iso image
6) remove temp files

Here is how to use mkisofs:

Code: Select all

mkisofs -J -l -V ${VOLNAME} -input-charset utf-8 -o ${ISOFILE} -b isolinux/isolinux.bin -c isolinux/ -no-emul-boot -boot-load-size 4 -boot-info-table ${TEMPDIR}