Commit 1d3399e6 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

cryptsetup: call mkswap on dm device, not on source device

parent bef2733f
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment