[linux-lvm] updated lvm2create_initrd script

Jeff Layton jtlayton at poochiereds.net
Sat May 15 17:55:36 UTC 2004

I've done some major updates to the lvm2create_initrd script today --
many of these were features I'd been wanting to add for a while. I'm
hoping this will bring the script closer to where it could be included
with the official tarballs.

I've done a little shuffling of my SVN tree, so it's now here:


A small changelog:

* added support for including modules in the initrd image. You have to
specify them on the commandline or pass in the $MODULES env. var to use

* Added support for activating specified MD devices during the initrd
phase. This requires you to have mdadm installed.

* Per Alasdair's suggestion, we no longer copy lvm.conf by default, but
now do an lvm dumpconfig and build a new lvm.conf file. The script now
only includes device filters by default. You can also build your own
lvm.conf and have the script use that instead.

* doesn't clobber as many environment vars when running now. Most
everything that can be set on the command line (and more) can also be
set via environment vars (I may have missed a few though).

I've also started work on a man page for it, but haven't gotten very far
with it yet.

Alasdair, can you have a look at the new version of this script and let
me know if there are other changes you'd like to see?

Jeff Layton <jtlayton at poochiereds.net>

More information about the linux-lvm mailing list