Building Installation Disks
Submitted by admin on Fri, 2007-06-08 20:59
Now, copy all the files on it to an ordinary directory on your system:
The mounted ISO is no longer needed, so can be unmounted. Inside the copied files, the following are available:
Then, burn the image to a disk and you're ready to go!
To build a new installation disk:
Mount the skeleton ISO:
mount -o loop bootdisk.iso /mntNow, copy all the files on it to an ordinary directory on your system:
cd /mnt
cp -r * /opt/bootdiskThe mounted ISO is no longer needed, so can be unmounted. Inside the copied files, the following are available:
| Item | Description |
|---|---|
| data | Contains a file called data.tgz which contains the bootstrap program. |
| isolinux | The CD boot files. Don't touch these unless you know what you're doing! |
| lost+found | Not used |
The data.tgz file is a compressed tar file that contains the bootstrap program. This program can be anything, from a simple shell script to a complex application.
The running system is in a RAM disk (which has limited size). The boot.tgz file is extracted into /opt/boot. Once the extract is complete, the installation disk attempts to run an executable at /opt/boot/bootstrap. Thus, create a tar file called data.tgz with a bootstrap program in the "root" of it. There is a template in the CDROM image.
To make a new CDROM image, change directory to the root of the CD image, and run:
mkisofs -o /data/image.iso -V 'Pre-Emptive' -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -V -T .Then, burn the image to a disk and you're ready to go!
