summaryrefslogtreecommitdiff
path: root/src/cryptsetup-generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptsetup-generator.c')
-rw-r--r--src/cryptsetup-generator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptsetup-generator.c b/src/cryptsetup-generator.c
index 9b62e6a6d3..b57c0b742a 100644
--- a/src/cryptsetup-generator.c
+++ b/src/cryptsetup-generator.c
@@ -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),