summaryrefslogtreecommitdiffstats
path: root/units/blockdev@.target
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2019-12-19 17:38:55 +0100
committerLennart Poettering <lennart@poettering.net>2020-01-21 20:23:13 +0100
commita7e885587949b6793ccf389505f3c436315fa653 (patch)
tree938983c24a144569fff6ad0fe7ddbb6e189b2b64 /units/blockdev@.target
parentcryptsetup-generator: order after cryptsetup-pre.target unconditionally (diff)
downloadsystemd-a7e885587949b6793ccf389505f3c436315fa653.tar.xz
systemd-a7e885587949b6793ccf389505f3c436315fa653.zip
units: introduce blockdev@.target for properly ordering mounts/swaps against cryptsetup
Let's hook it into both cryptsetup-generator and gpt-auto-generator with a shared implementation in generator.c Fixes: #8472
Diffstat (limited to 'units/blockdev@.target')
-rw-r--r--units/blockdev@.target13
1 files changed, 13 insertions, 0 deletions
diff --git a/units/blockdev@.target b/units/blockdev@.target
new file mode 100644
index 0000000000..22a9a5bb2b
--- /dev/null
+++ b/units/blockdev@.target
@@ -0,0 +1,13 @@
+# SPDX-License-Identifier: LGPL-2.1+
+#
+# This file is part of systemd.
+#
+# systemd is free software; you can redistribute it and/or modify it
+# under the terms of the GNU Lesser General Public License as published by
+# the Free Software Foundation; either version 2.1 of the License, or
+# (at your option) any later version.
+
+[Unit]
+Description=Block Device Preparation for %f
+Documentation=man:systemd.special(7)
+StopWhenUnneeded=yes