From 68bda079fd089e070ac8c93d5eb324e8cfc391d0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 21 Jan 2020 20:22:15 +0100 Subject: man: document blockdev@.target --- man/systemd.special.xml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'man') diff --git a/man/systemd.special.xml b/man/systemd.special.xml index c839af1842..f393283a1d 100644 --- a/man/systemd.special.xml +++ b/man/systemd.special.xml @@ -26,6 +26,7 @@ cryptsetup-pre.target, cryptsetup.target, ctrl-alt-del.target, + blockdev@.target, boot-complete.target, default.target, emergency.target, @@ -845,6 +846,23 @@ not useful as only unit within a transaction. + + blockdev@.target + This template unit may be used to order mount units and other consumers of block + devices against services that synthesize these block devices. This is intended to be used to order + storage services (such as + systemd-cryptsetup@.service5) + that allocate and manage a virtual block device against mount units and other consumers of + it. Specifically, the storage services are supposed to be orderd before an instance of + blockdev@.target, and the mount unit (or other consuming unit, such as a swap + unit) after it. The ordering is particular relevant during shutdown, as it ensures that the mount + is deactivated first and the service backing the mount only deactivated after that completed. The + blockdev@.target instance should be pulled in via a + dependency of the storage daemon and thus generally not be part of any transaction unless a storage + daemon is used. The instance name for instances of this template unit is supposed to be the + properly escaped bock device node path, e.g. blockdev@dev-mapper-foobar.target + for a storage device /dev/mapper/foobar. + cryptsetup-pre.target -- cgit v1.2.1