]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: add 'fsverity' flag for CopyFiles= lines 35401/head
authorAllison Karlitskaya <allison.karlitskaya@redhat.com>
Mon, 2 Dec 2024 09:50:02 +0000 (10:50 +0100)
committerAllison Karlitskaya <allison.karlitskaya@redhat.com>
Tue, 27 May 2025 07:26:02 +0000 (09:26 +0200)
commiteef63efcc3f3b7fdbac2fc8e1708f8ab1b78ad40
tree7b037a7419055fd3848bc4299072a1541a390294
parent80f00d67ad203fed60f4cc119ca2d52496df5f2a
repart: add 'fsverity' flag for CopyFiles= lines

We currently pass the CopyFlags that we use to populate the temporary
directory in the form of a constant at each of the copy_tree_at() call
sites.  De-duplicate that and move it into the `CopyFilesLine` struct,
initializing it from the parser.

Add our first non-constant flag: `fsverity=`.  This can be set to `off`
(the default) or `copy`, in which case we copy the fs-verity state from
the source files.

This arrangement is amenable to the introduction of more flags to
`CopyFiles=` lines, if we want to add them in the future.

Update the `repart.d(5)` manpage.

Closes #35352

Signed-off-by: Allison Karlitskaya <allison.karlitskaya@redhat.com>
man/repart.d.xml
src/repart/repart.c