These scripts are created based on the instructions given in this tutorial.
sudo apt-get install squashfs-tools genisoimage gfxboot-dev
The architecture (amd64 or i386) to be stored on the LiveCD should be the same as the architecture used to perform the customization, or the LiveCD may not run. It is not trivial to customize an AMD64 LiveCD using an i386 operating system, for example.
All commands must be run with root permission.
- Download an official Elementary iso and copy it to this directory, renamed as elementary.iso.
- Run
./extract-iso.sh
Now we have./extract-cdwhich contains the metadata and./editwhich holds the iso's chroot. - Run
./chroot.shand make customizations inside that chroot. - When you're done. Press Control-D to exit cleanly.
- Run
./gen-iso.shto create the final iso, named as gokien.iso.
Alternately, the last step can be replaced with running ./quick-gen-iso.sh, which does not compress ./edit into extract-cd/casper/filesystem.squashfs (computationally heavy).