Given 3 identical drives partitioned for an ubuntu 20.04 install as follows (swap and /home are on separate luks volumes to share with another Linux install on sda3/4)
| Partition | Format | Mount Point |
|---|---|---|
| /dev/sda1 | ext4 | /boot |
| /dev/sda2 | luks/ext4 | / |
| /dev/sda3 | (Unused) | |
| /dev/sda4 | (Unused) | |
| /dev/sda5 | luks/swap | swap |
| /dev/sdb | RAID 1 Member | |
| /dev/sdc | RAID 1 Member | |
| /dev/md0p1 | luks/ext4 | /home |
This guide is great for setting up luks, but only uses a single encrypted volume for
/andswap. Is there a way to configure/etc/crypttabso that a single password is required to unlock/dev/sda2which in turn will contain keys for unlocking/dev/sda5and/dev/md0p1automatically instead of entering 3 passwords on boot?If RAID1 is setup across
/dev/sdband/dev/sdcto create/dev/md0withmdadmbefore entering the ubuntu installer, how can ubuntu be configured to assemble the RAID volume on boot for mounting/home?