For Gentoo, I am able to (finally) boot my encrypted system with an initrd and LILO.
I used the guide at http://whitehathouston.com/documentation/gentoo/initramfs_howto.htm
However it appears that /dev/mapper/cryptvg-root is missing after the system has finished booting. Why would that be? Doing ls -al /dev/mapper shows only the file "control". Yet mount says that /dev/mapper/cryptvg-root is mounted at /.
I thought perhaps I needed to add something to remap the /dev file system in the initrd to the real root file system before control is passed over. So I added this:
mount -o move /dev /mnt/root/dev
Before I do exec switch_root.
However I still have no /dev/mapper/cryptvg-root when it has finished booting.
What do I need to do so that control is passed properly prior to and during exec switch_root?
If it should matter:
/dev/sda1 = /boot (not encrypted) /dev/sda2 = / (encrypted)