teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0533-units-order-cryptsetup-pre.target-before-cryptsetup..patch

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