addkey exclusive

This commit is contained in:
2019-09-20 14:49:15 +02:00
parent 8a9cf9019d
commit 84ffd1fb94
4 changed files with 26 additions and 15 deletions

View File

@@ -143,7 +143,7 @@ fn main() -> Fido2LuksResult<()> {
conf.device = conf.device.or(Some(device.to_string()));
let slot = add_key_to_luks(
conf.device.as_ref().unwrap().into(),
&secret_from_env_config(&conf)?,
&secret_from_env_config(&conf)?, true
)?;
println!("Added to key to device {}, slot: {}", device, slot);
Ok(())