This commit is contained in:
@@ -14,7 +14,7 @@ use std::process::Command;
|
||||
#[derive(Debug, Deserialize, Serialize)]
|
||||
pub struct EnvConfig {
|
||||
credential_id: String,
|
||||
uuid: String,
|
||||
device: String,
|
||||
salt: String,
|
||||
mapper_name: String,
|
||||
password_helper: String,
|
||||
@@ -24,7 +24,7 @@ impl Into<Config> for EnvConfig {
|
||||
fn into(self) -> Config {
|
||||
Config {
|
||||
credential_id: self.credential_id,
|
||||
device: format!("/dev/disk/by-uuid/{}", self.uuid).into(),
|
||||
device: self.device.into(),
|
||||
mapper_name: self.mapper_name,
|
||||
password_helper: PasswordHelper::Script(self.password_helper),
|
||||
input_salt: if PathBuf::from(&self.salt).exists() {
|
||||
|
Reference in New Issue
Block a user