View previous topic :: View next topic |
Author |
Message |
greanie n00b
Joined: 13 Nov 2007 Posts: 42
|
Posted: Fri Mar 15, 2013 10:21 am Post subject: New initramfs after every kernel config change? |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Mar 15, 2013 11:13 am Post subject: |
|
|
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 |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Fri Mar 15, 2013 11:48 am Post subject: |
|
|
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 |
|
|
greanie n00b
Joined: 13 Nov 2007 Posts: 42
|
Posted: Mon Mar 25, 2013 12:36 pm Post subject: |
|
|
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 |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Mon Mar 25, 2013 3:23 pm Post subject: |
|
|
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 |
|
|
|