From a7e885587949b6793ccf389505f3c436315fa653 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 19 Dec 2019 17:38:55 +0100 Subject: 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 --- units/blockdev@.target | 13 +++++++++++++ units/meson.build | 1 + 2 files changed, 14 insertions(+) create mode 100644 units/blockdev@.target (limited to 'units') 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'], -- cgit v1.2.1