LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   RE: Fedora kernel compilation (https://www.linuxquestions.org/questions/fedora-35/re-fedora-kernel-compilation-420768/)

jturnbul 03-01-2006 08:16 PM

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???

gilead 03-01-2006 08:36 PM

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.).

jturnbul 03-02-2006 07:12 AM

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??

gilead 03-02-2006 01:07 PM

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...


All times are GMT -5. The time now is 08:13 AM.