Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
New initramfs after every kernel config change?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
greanie
n00b
n00b


Joined: 13 Nov 2007
Posts: 32

PostPosted: Fri Mar 15, 2013 10:21 am    Post subject: New initramfs after every kernel config change? Reply with quote

Sorry for the total n00bie question but do I have to generate a new initramfs after every change in the kernel (I use menuconfig / make && make modules_install)?

Thanks!
Back to top
View user's profile Send private message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 2245

PostPosted: Fri Mar 15, 2013 11:13 am    Post subject: Reply with quote

greanie ...

generally, no. It somewhat depends on what the initramfs is doing ... or rather how it was created, but mostly the initramfs is generic enough to provide all thats need to do whats necessary to have the system in a ready enough state to boot.

The bootloader will obviously need to point to this initramfs.gz, and some bootloader configurations are designed to look for a initramfs.gz that is named to match the kernel version (I'm fairly sketchy on this, but I know of one that does this by default).

best ... khay
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2459
Location: Germany

PostPosted: Fri Mar 15, 2013 11:48 am    Post subject: Reply with quote

If your initramfs contains modules, it may have to be updated for modules (depends on your config change, if you changed something previously builtin to module). If it's generated automatically anyway, it's safer to just run the thing just in case.

A module-free initramfs works with any kernel that has the necessary drivers builtin. You might not ever have to change it provided old versions of lvm/cryptsetup/... are what you want to use to get things going.
Back to top
View user's profile Send private message
greanie
n00b
n00b


Joined: 13 Nov 2007
Posts: 32

PostPosted: Mon Mar 25, 2013 12:36 pm    Post subject: Reply with quote

Ok, another dump question, how do I know if my initramfs has modules? My kernel has a few packages installed as modules. Does that mean my initramfs will also have packages installed as modules? Is my initramfs just a copy of the kernel but configured to run in RAM?
Back to top
View user's profile Send private message
khayyam
Advocate
Advocate


Joined: 07 Jun 2012
Posts: 2245

PostPosted: Mon Mar 25, 2013 3:23 pm    Post subject: Reply with quote

greanie ...

You haven't said how this initramfs was created, only that you 'make && make modules_install' (so I assume your not using genkernel). As I said above it depends on what the initramfs is doing, and what you have, or don't have, enabled in the kernel. If something is required to boot then you could build this into the kernel rather than as a module, this way the initramfs will have whatever is needed.

For an example of an initramfs that can be used with various kernels without having to rebuild the initramfs see better-initramfs.

HTH & best ... khay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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