[systemd-commits] src/cryptsetup-generator.c
Lennart Poettering
lennart at kemper.freedesktop.org
Mon Jan 3 17:12:21 PST 2011
src/cryptsetup-generator.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 1d3399e6ef6f7384dfa9b775b442beb40c957f98
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 4 02:12:07 2011 +0100
cryptsetup: call mkswap on dm device, not on source device
diff --git a/src/cryptsetup-generator.c b/src/cryptsetup-generator.c
index c5e54d0..2bc4f56 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);
More information about the systemd-commits
mailing list