Add your own kernel and ramfs based on the existing LinuxLiveCD
Original LiveCD: install-amd64-minimal-20130711.iso (gentoo)
Working System: CentOS
1. Copy the content of the original LiveCD:
[root@localhost Downloads]# mkdir /mnt/livecd[root@localhost Downloads]# mkdir /mnt/img[root@localhost Downloads]# mount -t iso9660 -o loop install-amd64-minimal-20130711.iso /mnt/livecd/mount: /dev/loop0 is write-protected, mounting read-only<pre name="code" class="html">[root@localhost Downloads]# cp -r /mnt/livecd/* /mnt/img
2. Switch to/mnt/img to view the content under/mnt/img.
[root@localhost img]# lsgentoo.efimg image.squashfs livecd README.txtgentoo.efimg.mountPoint isolinux
3. Put your kernel and ramfs into the isolinux folder. The kernel here is bzImage, and ramfsis ramfs.tar.gz
[root@localhost img]# ls isolinux/boot.cat elilo.efi F4.msg F7.msg isolinux.bin memtest86boot.msg F2.msg F5.msg gentoo isolinux.cfg ramfs.tar.gzbzImage F3.msg F6.msg gentoo.igz kernels.msg System.map-gentoo
4. Modify isolinux. cfg and add a startup Item (the append item can be added or removed as needed ):
label hello-test kernel bzImage append root=/dev/ram init=/linuxrc initrd=ramfs.tar.gz
5. Go back to img and create your own iso file.
mkisofs -R -b isolinux/isolinux.bin -c isolinux/boot.cat -o /tmp/test.iso -V "test Linux" -no-emul-boot -boot-load-size 4 -boot-info-table .
6. directly use test. iso to use a virtual machine, or burn it. When you enter the startup interface, press the TAB key to view the hello-test item, enter it, and start: