|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
From eaaa52cc40bc7f94762ca622d4bd3e9440ccee90 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
Date: Thu, 12 Oct 2017 22:13:03 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
Subject: [PATCH] units: add [Install] section to remote-cryptsetup.target
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
This makes this target the same as remote-fs.target in this regard. In practice
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
it probably doesn't make that much difference, because all encrypted devices
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
that are part of remote-fs.target (marked with _netdev) will be used for mount
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
points, so they will be pulled in anyway individually, but with this change any
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
such device will be configured, even if it is not pulled by any other unit.
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
(cherry picked from commit 8f462b074eb9830d6d5029f70c9010ce50e68357)
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
---
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
system-preset/90-systemd.preset | 1 +
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
units/remote-cryptsetup.target | 6 ++++++
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
2 files changed, 7 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
diff --git a/system-preset/90-systemd.preset b/system-preset/90-systemd.preset
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
index 3ba4bb760d..98bc4c3c55 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
--- a/system-preset/90-systemd.preset
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
+++ b/system-preset/90-systemd.preset
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
@@ -9,6 +9,7 @@
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
# generally follow a default-off policy.
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
enable remote-fs.target
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
+enable remote-cryptsetup.target
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
enable machines.target
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
enable getty@.service
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
diff --git a/units/remote-cryptsetup.target b/units/remote-cryptsetup.target
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
index 60943bd1cb..c306d521f7 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
--- a/units/remote-cryptsetup.target
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
+++ b/units/remote-cryptsetup.target
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
@@ -8,3 +8,9 @@
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
[Unit]
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
Description=Remote Encrypted Volumes
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
Documentation=man:systemd.special(7)
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
+After=remote-cryptsetup-pre.target
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
+DefaultDependencies=no
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
+Conflicts=shutdown.target
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
+
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
+[Install]
|
|
Zbigniew Jędrzejewski-Szmek |
ca246f |
+WantedBy=multi-user.target
|