--verify-passphrase, -y
query for passwords twice. Useful when creating a (regular) mapping for the first time,
or when running luksFormat.
系统会两次询问现有密码和新密码:
$ sudo cryptsetup luksAddKey -y --key-slot 4 /dev/sda5
Enter any existing passphrase:
Verify passphrase:
Enter new passphrase for key slot:
Verify passphrase:
Passphrases do not match.
只需运行
cryptsetup
参数即可-y
。从手册页
cryptsetup
:系统会两次询问现有密码和新密码: