LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 10-30-2008, 12:15 PM   #1
scmbg
Member
 
Registered: Oct 2008
Location: Mexico City
Distribution: Fedora
Posts: 65

Rep: Reputation: 15
How change the shipped kernel on a Live CD


I have my customized kernel... just have an extras system calls and a softmodem driver.

I need create a Live CD. How can i change the kernel on my Fedora 9 Live?

http://fedoraproject.org/wiki/FedoraLiveCD/LiveCDHowTo was my first option but i dont know integrate my kernel.

Last edited by scmbg; 10-30-2008 at 01:02 PM. Reason: add extra info and change title
 
Old 10-31-2008, 12:28 AM   #2
scmbg
Member
 
Registered: Oct 2008
Location: Mexico City
Distribution: Fedora
Posts: 65

Original Poster
Rep: Reputation: 15
Problem solved...

There is the steps to change the kernel shipped on Fedora Live 9...

1.- Download the sources from http://kernel.org
2.- Customize the kernel, you know edit the .config file, better if you use the qt tool.
Code:
$make xconfig
Important: Dont forget patch with sqashfs and LZMA. [http://www.squashfs-lzma.org/]
Note0: You can spen some time and select olny the drivers for you computer.
3.- Build-it and create a RPM use...
Code:
$make binrpm-pkg
or just rpm-pkg to include the binaries and sources
4.- Install the createrepo tool.
Code:
$yum install createrepo
5.- Copy the RPM to a new directory and create a new repository.
Code:
$createrepo path/to/rpm.
Note1: You can add more RPMS later, and run createrepo again to have more software in you live cd, keep in mind the size.

6.- In /etc/yum.repos.d/ and add you repository info, you can use the existing files o create a new file with the next info:
Code:
[myrepo]
name=Fedora $releasever - myrepo - Extras
baseurl=file:///path/to/my/repository
enabled=1
gpgcheck=1
Note2: You can make a test searching your kernel with yum.

Note3: The next steps are good described in this link: http://fedoraproject.org/wiki/FedoraLiveCD/LiveCDHowTo

7.- Install the the live cd creation tools [$yum install livecd-tools].
8.- Go to /usr/share/livecd-tools/ and edit the livecd-fedora-base.ks file, just add your repository:
Code:
repo --name=myrepo <- this is the new repo.
repo --name=released --mirrorlist= <- here the mirror
repo --name=updates --mirrorlist= <- here the other mirror
and change the kernel line:
Code:
%packages
@base-x
@base
@core
@admin-tools
@dial-up
@hardware-support
@printing
kernel <- here put your kernel.
memtest86+
Note 4: After %post mark, you can add post install features like:

add users:
useradd -c "fedora" fedora
passwd -d fedora > /dev/null


add files:
cp $INSTALL_ROOT/usr/fedora/helloworld.c /home/I/Programs/C/helloworld.c


9.- Now create the Live CD ISO:
Code:
$livecd-creator \
--config=/usr/share/livecd-tools/livecd-fedora-GNOME.ks \
--fslabel=My-Fedora-LiveCD
Note5: Here i use livecd-fedora-GNOME.ks, but you can use livecd-fedora-KDE.ks, livecd-fedora-desktop.ks, livecd-fedora-minimal.ks, or one o the file in /usr/share/livecd-tools/

10.- Finally test the iso qemu-kvm -m 512 -cdrom filename.iso

Final note: make all as root.

Last edited by scmbg; 10-22-2009 at 10:18 AM. Reason: change info, typos and steps order
 
  


Reply

Tags
fedora, kernel, live


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applications shipped with SuSe ktook Linux - Software 2 09-18-2005 08:00 PM
Suse 9.2 prof Shipped snakedriver Suse/Novell 14 10-28-2004 08:49 PM
sound driver shipped in kernel, not listed in xconfig reetep Linux - General 4 01-29-2004 03:25 PM
Slackware 8.1 shipped? lto Slackware 7 07-15-2002 12:47 PM
Webmin shipped with RedHat 7.3? MarcRochkind Linux - Distributions 1 06-22-2002 02:59 PM


All times are GMT -5. The time now is 03:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration