kiwi-el8/setup.cfg
Marcus Schäfer d5e7e546ca
Add support for standalone dm integrity
There is support in kiwi to use dm_integrity in combination
with the LUKS header and dm_crypt. However there is also the
use case to setup dm_integrity in standalone mode. This commit
allows to create the dm_integrity layer outside of LUKS using
/etc/integritytab to activate the map through a systemd
generator if systemd is used.

Regarding systemd it's required to use a version of system which
provides: system-generators/systemd-integritysetup-generator.
If this generator does not exist in the distribution it will
also be missing in the dracut generated initrd and the boot
will not be able to succeed. It's mentioned here because even
newer distributions might be missing the generator

Along with the implementation there are two new optional
attributes in the <type> section:

    standalone_integrity="true|false"
    embed_integrity_metadata="true|false"

standalone_integrity activates/deactivates the dm_integrity map
on top of the root filesystem. Similar to the veritysetup support
there is the opportunity to create an embedded magic metadata
block at the end of the device containing the root
filesystem via embed_integrity_metadata
2022-04-25 15:40:32 +02:00

32 lines
672 B
INI

[sdist]
# Used by setup.py sdist
formats=gztar
[tool:pytest]
norecursedirs = .git build .tox/ .tmp/
addopts = --ignore=.tmp/ --ignore=.git/ --ignore=.tox/ -p no:warnings
testpaths = test/unit
[flake8]
# For error codes, see
# http://pep8.readthedocs.org/en/latest/intro.html#error-codes
#
# This file is generated automatically:
exclude=xml_parse.py
# we allow long lines (E501)
# we ignore warnings about quoting of escape sequences (W605)
ignore = E501, W605
# we allow a custom complexity level
max-complexity = 26
[doc8]
max-line-length = 90
verbose = 1
[mypy]
ignore_missing_imports = True
[mypy-kiwi.xml_parse.*]
# skip auto generated code
ignore_errors = True