From d120ce478dc0043c89899799b5c1aaf62901bea9 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. --- units/blockdev@.target | 1 + 1 file changed, 1 insertion(+) diff --git a/units/blockdev@.target b/units/blockdev@.target index ddc85bf890..1c86506351 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 -- 2.25.1