Simple customization without repacking ISO

Discussions about what to change in future versions (except software request).
Post Reply
Posts: 1
Joined: 11 Mar 2010, 12:56

Simple customization without repacking ISO

Post by dans » 11 Mar 2010, 13:24

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.

Site Admin
Posts: 2715
Joined: 17 Jul 2003, 09:44

Re: Simple customization without repacking ISO

Post by admin » 14 Mar 2010, 20:17

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}

Post Reply