Skip to contentSkip to conversation

updated lvm2create_initrd script

linux-lvm Jeff Layton 1 participant 2 messages May 15, 2004

lore
Share & tools
lore
#0 lore raw

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:

http://www.poochiereds.net/svn/lvm2

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 it.

* 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?

Signature · 1 line
Jeff Layton <[email protected]>
#1 lore raw

Got a bug report a little while ago from someone using this script on a RedHat machine. It looks like the MAKEDEV scripts on Debian and RedHat take different options. Anyone have suggestions on how best to handle this? I suppose we could do a case statement for each distrib or something, but then I'll need something to key off of to decide what invocation to use.

Thanks,

Signature · 1 line
Jeff Layton <[email protected]>