repart: add new --copy-source= switch
authorLennart Poettering <lennart@poettering.net>
Fri, 29 Sep 2023 14:24:48 +0000 (16:24 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Oct 2023 17:07:19 +0000 (19:07 +0200)
commit607343a1acd563138b7561fff0da24c5bb654909
tree6fc84e1a3d3c03864001e37c2af69fde65a8973e
parent248f0186c12ff13095fae5ffb989f4bf49929b23
repart: add new --copy-source= switch

This specifies a directory to which CopyFiles= is considered relative.
If unset defaults to the --root=/--image= setting, or host / otherwise.

This is very similar to --root= but is much more focussed: it is really
and exclusively about CopyFiles= (and related settings such as
ExcludeFiles=) and does not affect any of the settings, i.e. it doesn't
affect CopyBlocks=, the machine ID/seed handling, or where definitions
are read from.

In fact, --root= and --copy-source= may be combined for example to
use the machine ID and similar from one tree, but the copy the files
from another.
man/repart.d.xml
man/systemd-repart.xml
src/partition/repart.c