From: Lennart Poettering Date: Thu, 1 Jun 2023 16:31:17 +0000 (+0200) Subject: units: don't stop blockdev@.target unit at shutdown X-Git-Tag: v254-rc1~305^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d120ce478dc0043c89899799b5c1aaf62901bea9;p=thirdparty%2Fsystemd.git 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. --- diff --git a/units/blockdev@.target b/units/blockdev@.target index ddc85bf8909..1c865063513 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