LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 03-01-2006, 08:16 PM   #1
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Rep: Reputation: 15
RE: Fedora kernel compilation


I was a casual slack user, and have compiled the kernel under that distro many times.

I've compiled a new kernel, for my laptop, using the command
Code:
make rpm
then installing the rpm after. Works great.

Im curious about the initrd.img file.

Why does fedora use this, rather then the make install_modules command?? Can you use make install_modules rather then making an initrd.img file???
 
Old 03-01-2006, 08:36 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
As far as I know you need both if you have used modules for parts of the kernel that are needed prior to the root file system being mounted. The initrd part is so that some of the kernel can be left as modules and the make modules_install step is so that /lib/modules get populated.

You can avoid the initrd stuff if you compile into the kernel anything required prior to the root file system being mounted (file system support, etc.).
 
Old 03-02-2006, 07:12 AM   #3
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by gilead
As far as I know you need both if you have used modules for parts of the kernel that are needed prior to the root file system being mounted. The initrd part is so that some of the kernel can be left as modules and the make modules_install step is so that /lib/modules get populated.

You can avoid the initrd stuff if you compile into the kernel anything required prior to the root file system being mounted (file system support, etc.).
So does slack have everything required in the kernel before the rootfs is mounted, thus not needing the initrd file??

When installing a new kernel into fedora, I never needed to use the command make modules_install. Was it created simply by installing the source rpm file??
 
Old 03-02-2006, 01:07 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
I think Slack's setup from an initial install has everything it needs - I've just looked in the /boot directory of a box here at home and another at work and there are no initrd.gz files. But my usual install install process is to install my own kernel as soon as the box re-boots after installing lilo for the first time. The kernel packages on the CD might use an initrd, I just haven't installed one.

There is a link in each /boot directory to /usr/doc/mkinitrd-1.0.1/README.initrd so the system is certainly aware of them...
 
  


Reply



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
kernel compilation-From where it should be started for already compiled kernel b0nd Linux - Newbie 11 08-17-2005 01:08 PM
kernel compilation : to remove a kernel which files should be deleted b0nd Linux - Newbie 2 08-17-2005 11:35 AM
Kernel compilation problems, distorted video and kernel panic shamrock_uk Linux - Laptop and Netbook 5 08-12-2005 10:53 PM
Fedora kernel compilation kpachopoulos Fedora 1 06-15-2005 01:41 PM
does kernel-source installs with the compilation cum installtion of a new kernel? luqman Linux - General 18 03-04-2005 07:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:37 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration