I have system with soft raid and /home is encrypted (luks with password).
When I boot it using default boot kernel options (ro quiet) systemd stops
on waiting for partition, but no any password prompt. I try to boot with
plymouth (ro quiet splash), but it does not help me. I may boot only using
"recovery mode". In this case system asks me for password and I may enter
it (but there are lot of kernel messages after prompt).
update-initramfs finishes without errors or warnings.
What I'm doing wrong?

Best regards,
Sergey Belyashov

Additional information:

mdadm.conf:
ARRAY /dev/md0 metadata=0.90 UUID=91f74976:a3538ec7:cb201669:f728008a
ARRAY /dev/md1 metadata=1.2 UUID=d68931c6:642d72fc:b7471e62:33eab4d7
name=my-server:1
ARRAY /dev/md2 metadata=1.2 UUID=c42e4696:cb876ca7:c2773edf:e9b17a82
name=my-server:2

/proc/mdstat:
md0 : active raid1 sda3[0] sdc3[1]
      1462886848 blocks [2/2] [UU]

md1 : active (auto-read-only) raid1 sdc2[1] sda2[0]
      1998848 blocks super 1.2 [2/2] [UU]

md2 : active raid1 sdc1[1] sda1[0]
      248640 blocks super 1.2 [2/2] [UU]

crypttab:
#UUID=e7a2e597-8f57-4faf-b32d-f24b5720ffe5 same as /dev/md0p3
crypto-home UUID=e7a2e597-8f57-4faf-b32d-f24b5720ffe5 none luks

fstab:
/dev/md0p1                                         /               ext4
 errors=remount-ro 0       1
/dev/md0p2                                         /var            ext4
 defaults        0       2
/dev/md1                                             none            swap
 sw              0       0
/dev/md2                                             /boot           ext4
 defaults        0       2
/dev/mapper/crypto-home                   /home           auto    defaults
       0       2
...

$ egrep "^CRYPTSETUP" /etc/cryptsetup-initramfs/conf-hook
CRYPTSETUP=y

$ uname -a
Linux my-server 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13)
x86_64 GNU/Linux

systemd has version: 232-25+deb9u11
cryptsetup has version: 2:1.7.3-4
initramfs-tools has version: 0.130

Reply via email to