I dist upgraded and lost the kernel on my boot partition somehow.
I've managed to restore most of it (by booting an old 14, mounting the encrypted partition and chrooting into it - hence the /mnt below) but I still can't boot. It never asks for my root partition password and gets stuck inside an initramfs shell.
I've tried adding this to /etc/default/grub
where that UUID is in my /etc/crypttab:
sda5_crypt UUID=8711af09-1c70-414a-af43-e859ddabf09f none luks,discard
but when I do that and run grub-install like so:
grub-install --boot-directory=/mnt/boot /dev/sda1
I get this:
Installing for i386-pc platform. grub-install: error: attempt to install to encrypted disk without cryptodisk enabled. Set `GRUB_ENABLE_CRYPTODISK=1' in file `/etc/default/grub'..
From what I can find GRUB_ENABLE_CRYPTODISK is only for when you're encrypting your whole disk - I'm not. I've got a separate EXT2 boot partition mounted on /boot (or /mnt/boot on the USB booted machine).
When I do turn on that option:
and run the grub-install, I get:
Installing for i386-pc platform. grub-install: warning: Filesystem `ext2' doesn't support embedding. grub-install: error: embedding is not possible, but this is required for RAID and LVM install.
All the examples I can find seem to be for whole disc installs, no one seems to be talking about this case.