]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: set DefaultDependencies=no for veritysetup slice
authorLennart Poettering <lennart@poettering.net>
Thu, 1 Jun 2023 16:28:08 +0000 (18:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 1 Jun 2023 16:49:43 +0000 (18:49 +0200)
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.

units/meson.build
units/system-systemd\x2dcryptsetup.slice
units/system-systemd\x2dveritysetup.slice [new file with mode: 0644]

index e6eb300661ec89cfdb5c9ecd2c599330d7c20bdb..fa76946ddb7e2270edb3d07850f83cdd8506f660 100644 (file)
@@ -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',       ''],
index 98206a9d0643d4b17bee90ee29ce69006fa5313c..e81925d587727c82a4f3ae954d81bb6fcaffa450 100644 (file)
@@ -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 (file)
index 0000000..8ccaac9
--- /dev/null
@@ -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