From: Lennart Poettering Date: Tue, 21 Jan 2020 19:22:15 +0000 (+0100) Subject: man: document blockdev@.target X-Git-Tag: v245-rc1~16^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68bda079fd089e070ac8c93d5eb324e8cfc391d0;p=thirdparty%2Fsystemd.git man: document blockdev@.target --- diff --git a/man/systemd.special.xml b/man/systemd.special.xml index c839af1842c..f393283a1d5 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