units: don't stop blockdev@.target unit at shutdown

We want that cryptsetup/veritysetup devices can stick around until the
very end, as well as the users of them which might depend on
blockdev@.target for the devices. Hence leave the targets around till
the very end.

Note that their runtime is managed via StopWhenUnneeded= anyway, hence
unless their are volumes that actually survive still the very end they
target units will still be stopped.
This commit is contained in:
Lennart Poettering 2023-06-01 18:31:17 +02:00
parent 7a2f3194ff
commit d120ce478d

View file

@ -10,4 +10,5 @@
[Unit]
Description=Block Device Preparation for %f
Documentation=man:systemd.special(7)
DefaultDependencies=no
StopWhenUnneeded=yes