diff options
author | Tony Asleson <tasleson@redhat.com> | 2021-09-26 11:53:42 -0500 |
---|---|---|
committer | Tony Asleson <tasleson@redhat.com> | 2021-10-15 10:19:54 -0500 |
commit | 1f1a2243c0920bed1ba0ffd8e94e1de0172259ac (patch) | |
tree | 88a345aa7a9d6a92bfaf4765c4e36f7f8471d959 /units | |
parent | 9a2a6ec4e31abe4b58b140767a82200f79c8645f (diff) | |
download | systemd-1f1a2243c0920bed1ba0ffd8e94e1de0172259ac.tar.gz |
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')
-rw-r--r-- | units/integritysetup-pre.target | 14 | ||||
-rw-r--r-- | units/integritysetup.target | 12 | ||||
-rw-r--r-- | units/meson.build | 3 |
3 files changed, 29 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 diff --git a/units/integritysetup.target b/units/integritysetup.target new file mode 100644 index 0000000000..371490f883 --- /dev/null +++ b/units/integritysetup.target @@ -0,0 +1,12 @@ +# 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 +Documentation=man:systemd.special(7) diff --git a/units/meson.build b/units/meson.build index 93c3bf608a..c106284e0f 100644 --- a/units/meson.build +++ b/units/meson.build @@ -13,6 +13,9 @@ units = [ ['veritysetup-pre.target', 'HAVE_LIBCRYPTSETUP'], ['veritysetup.target', 'HAVE_LIBCRYPTSETUP', 'sysinit.target.wants/'], + ['integritysetup-pre.target', 'HAVE_LIBCRYPTSETUP'], + ['integritysetup.target', 'HAVE_LIBCRYPTSETUP', + 'sysinit.target.wants/'], ['dev-hugepages.mount', '', 'sysinit.target.wants/'], ['dev-mqueue.mount', '', |