I've just finished a Debian install and I'm trying to boot. I've encrypted my hard drive (LUKS) without partitioning and set up LVM on it. I don't have a separate boot volume, so the system will boot from the logical volume
root. I've replaced my BIOS with GRUB but I don't have a GRUB config generated for the system, so I need to boot manually from GRUB.
The GRUB shell code I've guessed to be correct is this:
linux /vmlinuz root=/dev/mapper/vg-root cryptdevice=/dev/sda
This is a modification of the configuration given here for a different encrypted LVM setup.
GRUB decrypts the drive fine, but when I try to boot like this I get the following several dozen times:
Begin: Running /scripts/local-block ... WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Volume group "vg" not found
Cannot process volume group vg
Then I get an initramfs shell. I suspect the kernel is looking for the root logical volume before decrypting the disk, since the same thing happens if I use for example
root=/dev/mapper/bogus-root. Are there kernel parameters that will allow me to boot this system, or do I have to change the initrd?