How to make a live cd?
Hello everyone.
I am trying to make a livecd. I have found information on "http://linux-live.org".
I have downloaded the aufs,squashfs,livescripts from there.
I am trying to compile the kernel on my own and include it.
The requirements included in the website are:
* Your distro must use kernel 2.6.24 or higher (in order to use sqlzma patch)
* all the following things must be compiled directly into kernel:
(these options are usually compiled so you shouldn't have problems)
- ext2 (CONFIG_EXT2_FS=y)
- tmpfs (CONFIG_TMPFS=y)
- ramdisk (CONFIG_BLK_DEV_RAM=y)
- initrd (CONFIG_BLK_DEV_INITRD=y)
- a cdrom driver, if you boot from CD-ROM
* all the following things must be compiled in the kernel or must be
available at least as a kernel modules (.ko):
- loop (else mount -o loop won't work)
- isofs (if you will boot your live distro from CDROM)
- ehci-hcd, ohci-hcd, uhci-hcd, usb-storage (if you will boot your live distro from USB)
* all these modules must be available:
- aufs.ko
- squashfs.ko (plus sqlzma.ko and unlzma.ko)
Make sure that your modules don't contain debug info, so it can fit
a 6MB initrd image. If you need debugging, change .config file
in linux live scripts and set it to to create bigger initrd.
* Your distro must have /usr/bin/chroot or /usr/sbin/chroot
* Your distro must have /bin/init or /sbin/init
* if you compiled squashfs tools manually, you should replace
./tools/mksquashfs and ./tools/unsquashfs by your own binaries
How can I compile the individual components?
And finally how to combine them?
How to include the modules :
- aufs.ko
- squashfs.ko (plus sqlzma.ko and unlzma.ko)
Thanks in advance
|