naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
dd65c9
From acf59b657e23e3b5b0f038823fe57dcfb4f914a4 Mon Sep 17 00:00:00 2001
dd65c9
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
dd65c9
Date: Tue, 5 Sep 2017 09:14:51 +0200
dd65c9
Subject: [PATCH] units: order cryptsetup-pre.target before cryptsetup.target
dd65c9
dd65c9
Normally this happens automatically, but if it happened that both targets were
dd65c9
pulled in, even though there were no cryptsetup units, they could be started
dd65c9
in reverse order, which would be somewhat confusing. Add an explicit ordering
dd65c9
to avoid this potential issue.
dd65c9
dd65c9
Cherry-picked from: 947d21171bdd8375db6482bc7d758d74b27f7dd4
dd65c9
Resolves: #1384014
dd65c9
---
dd65c9
 units/cryptsetup-pre.target | 1 +
dd65c9
 1 file changed, 1 insertion(+)
dd65c9
dd65c9
diff --git a/units/cryptsetup-pre.target b/units/cryptsetup-pre.target
c62b8e
index 65353419fc..42e35dd4e4 100644
dd65c9
--- a/units/cryptsetup-pre.target
dd65c9
+++ b/units/cryptsetup-pre.target
dd65c9
@@ -9,3 +9,4 @@
dd65c9
 Description=Encrypted Volumes (Pre)
dd65c9
 Documentation=man:systemd.special(7)
dd65c9
 RefuseManualStart=yes
dd65c9
+Before=cryptsetup.target