LVM magic in initrd, or "making an initrd without modules"

Paul Howarth paul at city-fan.org
Fri Jun 16 08:08:20 UTC 2006


On Fri, 2006-06-16 at 18:04 +1000, Steffen Kluge wrote:
> On Fri, 2006-06-16 at 08:52 +0100, Paul Howarth wrote:
> > > > If I "steal" the initrd from the stock 2122 kernel, the machine boots
> > > > fine. How can I make an initrd for a kernel with no modules and no
> > > > module support? One that just contains the functionality to boot an LVM
> > > > system?
> > 
> > What's the contents of the "init" script in your initrd?
> 
> I don't have one. I'm using the stock 2122 initrd, which is the same as
> yours. And it works, despite all the insmods that fail, they are not
> needed anyway.
> 
> What I'm after is a mkinitrd that will run and put all those bits into
> an initrd init script regardless of whether the kernel has modules or
> module support.
> 
> In short, loading modules isn't the only reason for using an initrd, but
> mkinitrd acts as if it is.

Does the --builtin=module option to mkinitrd not do that?

Paul,




More information about the fedora-list mailing list