122*_*693 6 command-line scripting luks cryptsetup
如何以非交互方式运行 cryptsetup luksFormat
当LUKS格式化分区时,我收到消息
# cryptsetup luksFormat /dev/sdb
WARNING!
========
This will overwrite data on /dev/sdb irrevocably.
Are you sure? (Type uppercase yes): YES
Run Code Online (Sandbox Code Playgroud)
紧随其后Enter passphrase:
。
我怎样才能自动回答YES
这个问题“你确定吗?
您可以使用--batch-mode, -q
选项cryptsetup
跳过问题。
$ cryptsetup -q luksFormat /dev/sdb
Run Code Online (Sandbox Code Playgroud)
此选项还会禁用密码验证,因此应谨慎使用或在自动化环境中使用
归档时间: |
|
查看次数: |
3524 次 |
最近记录: |