Also, if I copy /usr/share/initramfs-tools/hooks/lvm2 to /etc/initramfs-tools/hooks/lvm2, when I call update-initramfs I get an error about a symbolic link unable to be created because it already exists...
Maybe that's the problem? But I do not know how to solve it.
I also copied the cryptsetup and udev hooks and I have some udev scripts in /etc/initramfs-tools/scripts/init-top and init-bottom
Please anyone?
EDIT: I found a line in the booting process that says:
Begin: Loading essential drivers ... modprobe: module lvm2 not found in modules. dep
Then divice-mapper kicks in and then it runs /scripts/init-premount and tries to mount the root filesystem but skips everything.
If I wait a bit I get dropped to the initramfs console but just before that it tells me to check
cryptopts=source= bootarg: cat /proc/cmdline or missing modules, devices: cat /proc/modules; ls /dev and something about module ehci-orion not found.
In the initramfs console, if I run
cat /proc/modules | grep -i lvm I get nothing
Why isn't it being loaded??