启动时 dmcrypt / encrypt 挂钩未请求 LUKS 密码

Tom*_*ale 5 dm-crypt mkinitcpio kernel-parameters

在启动时我看到:

:: running hook [encrypt]

A password is required to access the  volume:
Command requires device and mapped name as arguments
Command requires device and mapped name as arguments
Command requires device and mapped name as arguments
Run Code Online (Sandbox Code Playgroud)

最后一条消息每秒重复一次。

我没有机会输入密码。

我正在运行基于 Arch 的 Manjaro。

我究竟做错了什么?

Tom*_*ale 6

您可能忘记在内核命令行参数中包含所需的 cryptdevice 映射名称。

我有:

cryptdevice=/dev/sdaX

但是,第二个以冒号分隔的字段是强制性的,例如:

cryptdevice=/dev/sdaX:root

如果您使用 SSD,并且已经了解其含义,为了提高性能,您可能需要使用:

cryptdevice=/dev/sdaX:root:allow-discards