On Tue, 12 Nov 2013 16:49:33 -0500, Tanstaafl wrote:

> > To create an initramfs, it is important that you know what
> > additional drivers, scripts and tools you need to boot your system.
> > For instance, if you use LVM, then you will need to support LVM tools
> > on the initramfs. Likewise, if you use software RAID, you need mdadm,
> > etc.  
> 
> I thought I'd mentioned/asked this before, but don't recall a 
> satisfactory answer...
> 
> Ok, up until now, I haven't *had* to 'know' what additional drivers are 
> needed by my system to boot.
> 
> So... how the heck am I supposed to find out? Trial and error?
> 
> I do know I need lvm, so have that one listed... but what else? There 
> has *got* to be some kind of way to analyze an existing system to
> reveal the 'drivers, scripts and tools' I need for my initramfs so I
> know what to include?

You need to be able to mount your root filesystem, and possibly /usr.

So you need anything needed for that that isn't compiled not your kernel,
such as SATA drivers, filesystem etc. You would normally build anything
like this into the kernel, so you just need the userspace tools. For
standard operations, that is all covered by busybox, but if you use LVM,
RAID or dmcrypt for those filesystems, include the relevant tools.

There is a very capable tool for examining your system and deciding what
is needed... you. 


-- 
Neil Bothwick

"If you can't explain it simply, you don't understand it well enough."
 (Albert Einstein)

Attachment: signature.asc
Description: PGP signature

Reply via email to