From 7f57b6f4336e9377949761ae00559cd917fb9827 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 1 Jun 2023 18:31:17 +0200 Subject: [PATCH] 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. (cherry picked from commit d120ce478dc0043c89899799b5c1aaf62901bea9) --- units/blockdev@.target | 1 + 1 file changed, 1 insertion(+) diff --git a/units/blockdev@.target b/units/blockdev@.target index 22a9a5bb2b..84fc13c5c6 100644 --- a/units/blockdev@.target +++ b/units/blockdev@.target @@ -10,4 +10,5 @@ [Unit] Description=Block Device Preparation for %f Documentation=man:systemd.special(7) +DefaultDependencies=no StopWhenUnneeded=yes