Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why initrd is not needed when manually comp. kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
scronkey
n00b
n00b


Joined: 19 Jan 2004
Posts: 31

PostPosted: Tue Jan 20, 2004 12:40 pm    Post subject: Why initrd is not needed when manually comp. kernel Reply with quote

Hi

Can someone please explain the reason why initrd is not needed
when the kernel is compiled manually? :?:

When using genkernel, an initrd image is created and placed in /boot, and with
my Redhat setup, it also uses initrd, but when using menuconfig, it is not needed.

Why is this?

-scronKey
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Tue Jan 20, 2004 12:58 pm    Post subject: Reply with quote

Well, in initrd you put everything the kernel has to know about _before_ it mounts your root partition.
Imagine you want to create a distribution, and you don't want to tell the end-user which filesystem he has to use, and you don't know wether he will boot from usb, scsi or [s]ata. So you could compile every necessary driver into the kernel, which would get quite bloated. To avoid this, you put said drivers into a virtual disk (yes, you already guessed, that's initrd), which in fact is 'given' to the kernel by your bootloader, so the kernel can read it with a rather generic fs driver ('initrd support' in kernel config) and without any hardware drivers.
But when you build your own kernel, in contrast, you already know which filesystem you use on your root disk and what your boot device is, so you can compile these drivers into your kernel and forget about initrd.
Just a side note: When you want to use bootsplash (a fancy boot-up screen with progress bar), you'll need initrd again.
Bye!
Back to top
View user's profile Send private message
scronkey
n00b
n00b


Joined: 19 Jan 2004
Posts: 31

PostPosted: Tue Jan 20, 2004 1:02 pm    Post subject: Reply with quote

Thanks, great answer!
Back to top
View user's profile Send private message
gonzalo
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2004
Posts: 104
Location: CL

PostPosted: Tue Jan 20, 2004 2:06 pm    Post subject: Reply with quote

indeed, precise.
Back to top
View user's profile Send private message
ett_gramse_nap
Apprentice
Apprentice


Joined: 01 Oct 2003
Posts: 252
Location: Göteborg, Sweden

PostPosted: Tue Jan 20, 2004 3:38 pm    Post subject: Reply with quote

Thanks! I've been looking for something like this for a long time...
_________________
Don't bother!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum