use full device path
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2019-09-17 21:55:31 +02:00
parent c9d8d24eec
commit 80c100d584
2 changed files with 12 additions and 8 deletions

View File

@@ -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() {