From: Lennart Poettering Date: Thu, 1 Jun 2023 16:28:08 +0000 (+0200) Subject: units: set DefaultDependencies=no for veritysetup slice X-Git-Tag: v254-rc1~305^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a2f3194ff0e2967a9a62d6fc8790e361407eec3;p=thirdparty%2Fsystemd.git units: set DefaultDependencies=no for veritysetup slice This mimics what we already have for cryptsetup services: the slice they are placed in (they have their own slice since that's what we do by default for instantiated services) shouldn't conflict with shutdown.target, so that veritysetup services can stay around until the very end (which is what we want for the root and usr verity volumes). It's literally just a copy of the same unit we already have for cryptsetup, just with an updated description string. --- diff --git a/units/meson.build b/units/meson.build index e6eb300661e..fa76946ddb7 100644 --- a/units/meson.build +++ b/units/meson.build @@ -96,6 +96,7 @@ units = [ ['sysinit.target', ''], ['syslog.socket', ''], ['system-systemd\\x2dcryptsetup.slice', 'HAVE_LIBCRYPTSETUP'], + ['system-systemd\\x2dveritysetup.slice','HAVE_LIBCRYPTSETUP'], ['system-update.target', ''], ['system-update-pre.target', ''], ['system-update-cleanup.service', ''], diff --git "a/units/system-systemd\\x2dcryptsetup.slice" "b/units/system-systemd\\x2dcryptsetup.slice" index 98206a9d064..e81925d5877 100644 --- "a/units/system-systemd\\x2dcryptsetup.slice" +++ "b/units/system-systemd\\x2dcryptsetup.slice" @@ -8,6 +8,6 @@ # (at your option) any later version. [Unit] -Description=Cryptsetup Units Slice +Description=Encrypted Volume Units Service Slice Documentation=man:systemd-cryptsetup@.service(8) DefaultDependencies=no diff --git "a/units/system-systemd\\x2dveritysetup.slice" "b/units/system-systemd\\x2dveritysetup.slice" new file mode 100644 index 00000000000..8ccaac90e6c --- /dev/null +++ "b/units/system-systemd\\x2dveritysetup.slice" @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: LGPL-2.1-or-later +# +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation; either version 2.1 of the License, or +# (at your option) any later version. + +[Unit] +Description=Verity Protection Service Slice +Documentation=man:systemd-cryptsetup@.service(8) +DefaultDependencies=no