Remaster Kit Documentation
Remaster Kit Documentation
RemasterKit is an application that lets you easily remaster the ZevenOS LiveSystem or any
other Ubuntu based Linux distribution. It is based upon a shell script using the tools mount,
mkisofs, mksquashfs and chroot.
2. How to use it ?
First of all you will need a working directory and the proper LiveCD iso file. To create a
working directory for an iso file just enter the following command as root
(this is only an example):
This command will create the folder TestProject, located in the root directory of the Linux
system, and will start extracting the iso file and the including LiveSystem into this folder. The
newly created folder TestProject will show several subfolders:
• edit,
• extract-cd,
• mnt,
• squashfs
• and a link to the zevenos.iso file.
Whereby the subfolder called edit contains the LiveSystem root directory.
You will need root rights, of course, to modify the LiveSystem within the subfolder edit. You have
the choice of:
To perform the changeroot you have to switch back to the folder called TestProject (using the
command cd). Enter there the following command:
The command prompt will change then (something like /#) to indicate that you now are working
as root in the LiveSystem environment (within the subfolder edit). You may now add or remove
carefully (!) software with apt-get, aptitude or dpkg.
Be aware that not all actions will work correctly in the LiveSystem environment. Starting the
Xserver for example is highly not recommened unless you know how to prepare the
environment and how to clean up everything after having done your changes.
Once you have applied all desired changes to the LiveSystem, you need to re-pack the
LiveSystem into the filesystem.squashfs image and re-build the final iso file. Additionally, the
filesystem.manifest needs to be re-written in order to reflect the software packages included in the
new LiveSystem. Remaster-Kit will do all this automatically for you and even will create a md5
checksum.txt for your iso image file. It's up to you to burn it and to share it with others.
/# exit
All you need for building the iso file is to execute the following command within the project
folder:
This will create an iso image file called remastered-zevenos.iso which is labeled VolumeName.
(Note: VolumeName cannot contain spaces)
create
will create a project directory, will mount the iso file and will copy all the content into the
folder extract-cd. Afterwards the filesystem.squashfs will be mounted and will be copied to
the folder edit
chroot
will perform a changeroot: the superuser root will switch to the LiveSystem environment
(which is located in the folder edit). Root will be able to modify the system, for instance to
install some new programs using an existing internet connection or to delete programs
which are not suitable any more.
clean
will unmount the temporary directories in the TestProject folder and will delete them
afterwards
remove
will delete the TestProject folder completely
4. Warning
Do not remaster LiveSystems with Kernels below 2.6.29 as the squashfs version will not be
compatible with them.
As Remaster-Kit is a simple shell script. The source is included and located in /usr/bin/.
The shell script can easily be modified by any text editor.
Remaster-Kit is provided under the BSD license and therefore can be modified and redistributed
without any permission, for commercial purposes as well as for free usage. A commercial
redistribution without the source code is granted as well. If you wish to redistribute Remaster-Kit
be aware of the specific dependencies: chroot, mkisofs, mksquashfs.
There are some special folders in the LiveSystem you might want to edit. Here is a selection of
the most important ones: