I am running an Ubuntu 16.04 system with the following hard disk configuration:
- 1 hard drive which I will call /dev/sda. /dev/sda has 3 partitions used for the following purposes:
- /dev/sda1 is used for the EFI system partition.
- /dev/sda2 is used for the /boot partition.
- /dev/sda3 is used to store an encrypted volume, encrypted with LUKS.
- I will call the decrypted /dev/sda3 device /dev/sda3_crypt. Within /dev/sda3_crypt sits an LVM configuration. The LVM configuration consists of a volume group named "alexmini". The alexmini volume group contains the following logical volumes and filesystems:
- A /dev/mapper/alexmini-vg--root logical volume containing a btrfs filesystem.
- A /dev/mapper/alexmini-vg--swap logical volume used for swap space.
- I have a second hard drive called /dev/sdb. /dev/sdb contains 1 partition called /dev/sdb1. /dev/sdb1 is also encrypted device using LUKS. I will call the decrypted device /dev/sdb1_crypt. /dev/sdb1_crypt contains a btrfs filesystem. /dev/sdb1_crypt is added to the /dev/mapper/alexmini-vg--root btrfs volume pool.
- The btrfs filesystem is also my root filesystem.
When I run update-initramfs from the configuration specified above, I expected that the cryptsetup initramfs boot scripts would decrypt both /dev/sda3 and /dev/sdb1, but the scripts only decrypt /dev/sda3, which only leads to part of the btrfs volume pool to be available. I end up in the initramfs "recovery" mode.
How do I configure the update-initramfs so that the cryptsetup boot scripts will prompt me twice to decrypt both my hard disks, once for /dev/sda3 and once for /dev/sdb1?