summaryrefslogtreecommitdiffstats
path: root/units/integritysetup-pre.target
diff options
context:
space:
mode:
authorTony Asleson <tasleson@redhat.com>2021-09-26 18:53:42 +0200
committerTony Asleson <tasleson@redhat.com>2021-10-15 17:19:54 +0200
commit1f1a2243c0920bed1ba0ffd8e94e1de0172259ac (patch)
tree88a345aa7a9d6a92bfaf4765c4e36f7f8471d959 /units/integritysetup-pre.target
parentdm-verity: Remove usage of integrity (diff)
downloadsystemd-1f1a2243c0920bed1ba0ffd8e94e1de0172259ac.tar.xz
systemd-1f1a2243c0920bed1ba0ffd8e94e1de0172259ac.zip
Add stand-alone dm-integrity support
This adds support for dm integrity targets and an associated /etc/integritytab file which is required as the dm integrity device super block doesn't include all of the required metadata to bring up the device correctly. See integritytab man page for details.
Diffstat (limited to 'units/integritysetup-pre.target')
-rw-r--r--units/integritysetup-pre.target14
1 files changed, 14 insertions, 0 deletions
diff --git a/units/integritysetup-pre.target b/units/integritysetup-pre.target
new file mode 100644
index 0000000000..da2aca9a28
--- /dev/null
+++ b/units/integritysetup-pre.target
@@ -0,0 +1,14 @@
+# 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=Local Integrity Protected Volumes (Pre)
+Documentation=man:systemd.special(7)
+RefuseManualStart=yes
+Before=integritysetup.target