summaryrefslogtreecommitdiff
path: root/src/cryptsetup-generator.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-11-14 01:53:46 +0100
committerLennart Poettering <lennart@poettering.net>2010-11-14 19:59:10 +0100
commit260ab287953153a8b4ae13133adfdfc2b3514a46 (patch)
tree5cf5c5737b1c66c0acd912a1a2c7b3cf453551f1 /src/cryptsetup-generator.c
parent612eb8e4598df4249a23895c57e006087536b357 (diff)
cryptsetup: support non-LUKS crypto partitions
Diffstat (limited to 'src/cryptsetup-generator.c')
-rw-r--r--src/cryptsetup-generator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cryptsetup-generator.c b/src/cryptsetup-generator.c
index d1d7bb6954..3c3b99de51 100644
--- a/src/cryptsetup-generator.c
+++ b/src/cryptsetup-generator.c
@@ -115,9 +115,8 @@ static int create_disk(
"\n[Service]\n"
"Type=oneshot\n"
"RemainAfterExit=yes\n"
- "ExecStart=" SYSTEMD_CRYPTSETUP_PATH " %s '%s' '%s' '%s' '%s'\n"
+ "ExecStart=" SYSTEMD_CRYPTSETUP_PATH " attach '%s' '%s' '%s' '%s'\n"
"ExecStop=" SYSTEMD_CRYPTSETUP_PATH " detach '%s'\n",
- options && has_option(options, "swap") ? "format-and-attach" : "attach",
name, u, strempty(password), strempty(options),
name);