26 lines
1.0 KiB
Diff
26 lines
1.0 KiB
Diff
From 84838295cc120a2f5d7ebe2af246483c4d1aa82e Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Date: Tue, 5 Sep 2017 09:14:51 +0200
|
|
Subject: [PATCH] units: order cryptsetup-pre.target before cryptsetup.target
|
|
|
|
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.
|
|
|
|
(cherry picked from commit 947d21171bdd8375db6482bc7d758d74b27f7dd4)
|
|
(cherry picked from commit c55ccd92b9503bc074e6ffb07925f09024e9949d)
|
|
---
|
|
units/cryptsetup-pre.target | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/units/cryptsetup-pre.target b/units/cryptsetup-pre.target
|
|
index 65353419fc..42e35dd4e4 100644
|
|
--- a/units/cryptsetup-pre.target
|
|
+++ b/units/cryptsetup-pre.target
|
|
@@ -9,3 +9,4 @@
|
|
Description=Encrypted Volumes (Pre)
|
|
Documentation=man:systemd.special(7)
|
|
RefuseManualStart=yes
|
|
+Before=cryptsetup.target
|