use password helper in modified environments
This commit is contained in:
parent
e7049a281a
commit
a307d87d88
@ -105,7 +105,7 @@ pub struct SecretGeneration {
|
|||||||
#[structopt(
|
#[structopt(
|
||||||
name = "password-helper",
|
name = "password-helper",
|
||||||
env = "FIDO2LUKS_PASSWORD_HELPER",
|
env = "FIDO2LUKS_PASSWORD_HELPER",
|
||||||
default_value = "/usr/bin/systemd-ask-password 'Please enter second factor for LUKS disk encryption!'"
|
default_value = "/usr/bin/env systemd-ask-password 'Please enter second factor for LUKS disk encryption!'"
|
||||||
)]
|
)]
|
||||||
pub password_helper: PasswordHelper,
|
pub password_helper: PasswordHelper,
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ pub enum PasswordHelper {
|
|||||||
impl Default for PasswordHelper {
|
impl Default for PasswordHelper {
|
||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
PasswordHelper::Script(
|
PasswordHelper::Script(
|
||||||
"/usr/bin/systemd-ask-password 'Please enter second factor for LUKS disk encryption!'"
|
"/usr/bin/env systemd-ask-password 'Please enter second factor for LUKS disk encryption!'"
|
||||||
.into(),
|
.into(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user