]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: don't stop blockdev@.target unit at shutdown
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Jun 2023 16:31:17 +0000 (18:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Jun 2023 16:49:43 +0000 (18:49 +0200)
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.

units/blockdev@.target

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