]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: order cryptsetup-pre.target before cryptsetup.target
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Sep 2017 07:14:51 +0000 (09:14 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 5 Sep 2017 10:06:30 +0000 (12:06 +0200)
Normally this happens automatically, but if it happened that both targets were
pulled in, even though there were no cryptsetup units, they could be started
in reverse order, which would be somewhat confusing. Add an explicit ordering
to avoid this potential issue.

units/cryptsetup-pre.target

index 65353419fc7fe930533cc2e25734b1ecc2af52a6..42e35dd4e4691b44ca359090169ee1017251f93f 100644 (file)
@@ -9,3 +9,4 @@
 Description=Encrypted Volumes (Pre)
 Documentation=man:systemd.special(7)
 RefuseManualStart=yes
+Before=cryptsetup.target