diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-12-19 17:38:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-01-21 20:23:13 +0100 |
commit | a7e885587949b6793ccf389505f3c436315fa653 (patch) | |
tree | 938983c24a144569fff6ad0fe7ddbb6e189b2b64 /units | |
parent | 6bbd539e5e7226ff1e2574e42c8bc821b68cfa19 (diff) | |
download | systemd-a7e885587949b6793ccf389505f3c436315fa653.tar.gz |
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')
-rw-r--r-- | units/blockdev@.target | 13 | ||||
-rw-r--r-- | units/meson.build | 1 |
2 files changed, 14 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 diff --git a/units/meson.build b/units/meson.build index f7653c920c..27742044c5 100644 --- a/units/meson.build +++ b/units/meson.build @@ -2,6 +2,7 @@ units = [ ['basic.target', ''], + ['blockdev@.target', ''], ['bluetooth.target', ''], ['boot-complete.target', ''], ['cryptsetup-pre.target', 'HAVE_LIBCRYPTSETUP'], |