Ubuntu is not booting but printing weird things, either
/run/lvm/lvmetad.socket: connect failed: No such file or directory
/sbin/cryptsetup not found
then falls back to busybox after a few minutes (sometimes..).
The error appeared after moving onto a new hard disk where I had to delete an encrypted partition. After
chrooting into the root partition and running
udpate-initramfs -u the error mentioned in this Ask Ubuntu question popped up:
cryptsetup: WARNING: could not determine root device from /etc/fstab
I followed the setup proposed in this article: Full disk encryption with Ubuntu. Now I have a
/ btrfs volume inside LUKS with an unencrypted
/boot partition. All this running on EFI with secure boot disabled.