Saturday, December 6, 2008

Creating your own Fedora Live CD

There are tools in Fedora repository for building live CD's. 'livecd-tools' is nice tool for generating live CD's on Fedora based systems including derived distributions such as RHEL, CentOS and others.
So first install this utility by issuing the command on terminal as root:
#yum install livecd-tools

After you install that utility, you'll see some kickstart files in /usr/share/livecd-tools dir. For my experiment I tried using one of the kickstart files from here. I choose the minimal kickstart file first. To create a ISO image of this file, issue the command 'livecd-creator --config=/usr/share/livecd-tools/livecd-fedora-minimal.ks'. Now you should have the ISO image for your kickstart file. You can test your live CD using QEUM. For that first install qeum (yum install kvm qeum -y).
Than issue the command #qeum-kvm -m 512 -cdrom YourFileName.iso.
I was not able to successfully create my live CD, I got some missing module error. Next I am gonna use some other kickstart file and try to create live CD based on it.

1 comment:

Unknown said...

I try to create a Bootable Fedora LiveCD but it Failed in Fedora 10

Fedora_Minimal.ks
####################
lang en_US.UTF-8
keyboard us
timezone US/Central
auth --useshadow --enablemd5
selinux --permissive
firewall --disabled
part / --size 1024

repo --name=development --mirrorlist=http://mirrors.fedoraproject.org/
mirrorlist?repo=rawhide&arch=$basearch

%packages
@core
bash
kernel
passwd
policycoreutils
chkconfig
authconfig
rootfiles

/usr/sbin/lokkit

%end
####################

livecd-creator --config=./Fedora_Minimal.ks --fslabel=Your_Distro

if you don't add the line: /usr/sbin/lokkit will stop with error !!!,
once you add the line wait until the process finish...

After the iso image gets generated the following message appear :

Error on boot:

mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Bug in initramfs /init detected. Dropping to a shell. Good luck!

bash: no job control in this shell
bash-4.0#

I really like to see a way to create your own custom Fedora Minimal
LIveCD or USB.

Maybe add the option to boot in about 5 seconds like reported at:
http://lwn.net/Articles/299483/

And why not to handle the awesome speed & compression from: http://www.slax.org/
Seems like Build aufs kernel module and squashfs kernel module
(optionally patched to support LZMA) is the way to go.

If somebody have some ideas will be really appreciated...

Dinooz

I have the same post reported at: http://forums.fedoraforum.org/showthread.php?t=212761