2024-07-30T11:54:51+08:00
After installing Debian GNU/Linux on the computer using encrypted LVM, the system could not boot and dropped to the initramfs shell.
Main drive has a GUID Partition Table. /dev/sda1 is the biosgrub partition, /dev/sda2 is the partition for /boot and /dev/sda3 is the LUKS physical partition.
Using /dev/sda3 a LVM volume group was created. The volume group contains two volumes, one for the swap, the other is used for /.
Boot into a Debian Live CD.
Enter the terminal and mount all the partitions. Don't forget to mount /dev, /proc, and /sys.
Chroot into the root partition and edit /etc/cryptsetup-initramfs/conf-hook:
# nano /etc/cryptsetup-initramfs/conf-hook
Add a line CRYPTSETUP=y.
# update-initramfs -u