cryptsetup-generator: order after cryptsetup-pre.target unconditionally

This commit is contained in:
Lennart Poettering
2020-01-21 20:23:10 +01:00
parent 49685fb314
commit 6bbd539e5e
+5 -3
View File
@@ -299,9 +299,11 @@ static int create_disk(
"SourcePath=%s\n"
"DefaultDependencies=no\n"
"IgnoreOnIsolate=true\n"
"After=%s\n",
arg_crypttab,
netdev ? "remote-fs-pre.target" : "cryptsetup-pre.target");
"After=cryptsetup-pre.target\n",
arg_crypttab);
if (netdev)
fprintf(f, "After=remote-fs-pre.target\n");
/* If initrd takes care of attaching the disk then it should also detach it during shutdown. */
if (!attach_in_initrd)