mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-08 20:58:20 +03:00
cryptsetup-generator: order after cryptsetup-pre.target unconditionally
This commit is contained in:
parent
49685fb314
commit
6bbd539e5e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user