Specify LVM support for mkinitrd

I have converted a SLES 10 SP1 installation from a physical machine to a Vmware virtual machine, and while doing this I also changed the root filesystem so it is now on an LVM volume.
Everyting works fine, but when I do a kernel upgrade mkinitrd does not include support for LVM, so I have to manually run “mkinitrd -f lvm2” for it to add support.
On other machines where I had LVM from the start this does not happen, so my question is, are there a file somewhere where mkinitrd reads the feature list from ?

On Fri, 2008-10-31 at 07:46 +0000, ddelin wrote:
> I have converted a SLES 10 SP1 installation from a physical machine to a
> Vmware virtual machine, and while doing this I also changed the root
> filesystem so it is now on an LVM volume.
> Everyting works fine, but when I do a kernel upgrade mkinitrd does not
> include support for LVM, so I have to manually run “mkinitrd -f lvm2”
> for it to add support.
> On other machines where I had LVM from the start this does not happen,
> so my question is, are there a file somewhere where mkinitrd reads the
> feature list from ?
>
>

You can add it to /etc/sysconfig/kernel

There’s a variable in there for modules to add to the initrd.

Doesn´t seem to work, I get this output

WARNING Cannot determine dependencies of kernel module ‘lvm2’.
Does it exist? If it does, try depmod -a. Continuing without lvm2.

On my machines that had LVM from the start, there is no “lvm2” in this file, however there is a “dm_mod”, is that enough to get root LVM working.
I´m going to try on monday when back on work.