summaryrefslogtreecommitdiff
path: root/src/cryptsetup-generator.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-04 02:12:07 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-04 02:12:07 +0100
commit1d3399e6ef6f7384dfa9b775b442beb40c957f98 (patch)
tree31ab63ad70408c7a8724002078ed8db834038867 /src/cryptsetup-generator.c
parentbef2733fae665e880da6ea011b1f918e6900bb42 (diff)
cryptsetup: call mkswap on dm device, not on source device
Diffstat (limited to 'src/cryptsetup-generator.c')
-rw-r--r--src/cryptsetup-generator.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cryptsetup-generator.c b/src/cryptsetup-generator.c
index c5e54d0988..2bc4f566a6 100644
--- a/src/cryptsetup-generator.c
+++ b/src/cryptsetup-generator.c
@@ -122,13 +122,13 @@ static int create_disk(
if (options && has_option(options, "tmp"))
fprintf(f,
- "ExecStartPost=/sbin/mke2fs '%s'",
- u);
+ "ExecStartPost=/sbin/mke2fs '/dev/mapper/%s'",
+ name);
if (options && has_option(options, "swap"))
fprintf(f,
- "ExecStartPost=/sbin/mkswap '%s'",
- u);
+ "ExecStartPost=/sbin/mkswap '/dev/mapper/%s'",
+ name);
fflush(f);