问题原文
原帖链接 · t777 · CC BY-SA 4.0
My system setup is as following:
- One single SSD with LUKS and LVM (and of course an unencrypted
bootpartition). The debian system is installed there. - Two HDDs assembled as RAID0 with LUKS and LVM for some custom data
To unlock to LUKS-devices at boot time from remote, I tried to use dropbear-initramfs.
That works fine, to unlock the first LUKS device (on the SSD, with the debian system installed on):
- I log in with ssh to dropbear/busybox
- I use
cryptroot-unlock, insert the key, and unlock it
But to unlock the second LUKS device (on the RAID0), I still needs some console.
Is there any way to unlock both LUKS devices together (or after another) using dropbear-initramfs / busybox? TIA!
已采纳解答
原帖链接 · t777 · CC BY-SA 4.0
Someone could say: RTFM ... /usr/share/doc/cryptsetup/README.Debian.gz, section 8.
The solution is to put initramfs to options in crypttab, like:
nvme0n1p3_crypt UUID=7988273-32b1-163b-8b44-e479f39f15a1 none luks,discard,initramfs
md_crypt /dev/md/myraid none luks,discard,initramfs
Then cryptroot-unlock ask me to unlock both LUKS devices. :)
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
