Skip to content

Commit

Permalink
units: don't stop blockdev@.target unit at shutdown
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit d120ce478dc0043c89899799b5c1aaf62901bea9)
  • Loading branch information
poettering authored and msekletar committed Feb 15, 2024
1 parent 6193d35 commit f4637e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions units/blockdev@.target
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
[Unit]
Description=Block Device Preparation for %f
Documentation=man:systemd.special(7)
DefaultDependencies=no
StopWhenUnneeded=yes

0 comments on commit f4637e0

Please sign in to comment.