]> git.ipfire.org Git - thirdparty/systemd.git/commit
repart: Collect CopyFiles= lines into structs
authorAllison Karlitskaya <allison.karlitskaya@redhat.com>
Mon, 2 Dec 2024 09:46:46 +0000 (10:46 +0100)
committerAllison Karlitskaya <allison.karlitskaya@redhat.com>
Tue, 27 May 2025 07:26:02 +0000 (09:26 +0200)
commit80f00d67ad203fed60f4cc119ca2d52496df5f2a
treeead80233ccfdaa0154ca287d2597e8dcaecfeb59
parenta46bb377105153c734bab690508c3d3bbc8248d3
repart: Collect CopyFiles= lines into structs

We currently convert the source:target pairs of the `CopyFiles=` lines
in `repart.d` files into a pairwise strv.  This works great if the only
thing that can be specified is a source and a target, but we're about to
add a flags field.

Let's start by making this a bit more explicit: we now turn each
`CopyFiles=` line into a `CopyFilesLine` struct.  We keep an array of
those in the `Partition` now, instead of the strv.

So far this is a whole lot of added complexity for nothing, but it's
necessary for the next step.

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