mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
crypto: let the cryptsetup binary handles its own configurable timeouts
This commit is contained in:
parent
ef9eb0a897
commit
9072492933
@ -115,6 +115,7 @@ static int create_disk(
|
||||
"\n[Service]\n"
|
||||
"Type=oneshot\n"
|
||||
"RemainAfterExit=yes\n"
|
||||
"TimeoutSec=0\n" /* the binary handles timeouts anyway */
|
||||
"ExecStart=" SYSTEMD_CRYPTSETUP_PATH " attach '%s' '%s' '%s' '%s'\n"
|
||||
"ExecStop=" SYSTEMD_CRYPTSETUP_PATH " detach '%s'\n",
|
||||
name, u, strempty(password), strempty(options),
|
||||
|
@ -40,7 +40,7 @@ static char *opt_hash = NULL;
|
||||
static unsigned opt_tries = 0;
|
||||
static bool opt_readonly = false;
|
||||
static bool opt_verify = false;
|
||||
static usec_t opt_timeout = 0;
|
||||
static usec_t opt_timeout = DEFAULT_TIMEOUT_USEC;
|
||||
|
||||
/* Options Debian's crypttab knows we don't:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user